Comments (9)
You need to use the TFMini-Plus-I2C library to change the TFMini-Plus I2C address. You may want to raise your issue in the repository for that library.
In the TFMini-Plus-I2C library, you will need to send a SET_I2C_ADDRESS
command to change the I2C address, followed by a SAVE_SETTINGS
command to save the change. If you change the I2C address to one that is different from the default address (0x10), the library requires that you include the new, none-default address in every subsequent command.
I'm not sure I understood your question, so I hope this helps.
from tfmini-plus.
from tfmini-plus.
from tfmini-plus.
Bram,
If you send a command to the TFMini-Plus to change from UART to I2C communication mode, all further communication must be in I2C format. When the device is in I2C mode, you will not be able to use the SSCOM application.
However, while the device is powering up, it will be in serial mode for about ten seconds. During that time, you might be able to reconnect with SSCOM and send the command 0x5A050A0069
to reset the device to UART mode.
And yes, you can use an Arduino Nano to communicate with the TFMini-Plus in either UART or I2C mode.
Good luck,
Bud
from tfmini-plus.
from tfmini-plus.
Bram,
I sincerely doubt that the firmware is corrupted or that SSCOM is not working correctly.
My suggestions are:
- try using your Arduino Nano to communicate with the TFMini-Plus in I2C mode;
- try to reach the device with SSCOM during the 10 second power up period;
(You didn't include the "0x" in the command0x5A050A0069
you sent, did you?) - please, please try to communicate your problem clearly, precisely and thoroughly. Include every step of your procedure and include all relevant code that you are using. It will help you to think things through;
- pictures of your setup and screen shots would be very helpful; and
- never give up.
Bud
from tfmini-plus.
from tfmini-plus.
Bram,
Show me how are you connecting SSCOM to the TFMini-Plus?
We are way off topic, so let's take this out of Github.
Write to me at: [email protected]
Bud
from tfmini-plus.
Bram was trying to setup three TFMini+'s to work together on a drone with a shared I2C bus. He was having difficulty changing the I2C address and then maintaining communication with the devices. Here are a couple of things we both learned:
- Spaces are not allowed in Arduino sketch filenames. Remember that!
- While still in UART communication mode. you can command the device to change its I2C address The default address of the TFMini+ is
0x10
. - The value of an I2C address cannot be checked in UART mode. For that, you have to:
a) command the TFMini+ to change communication mode to I2C;
b) change your wiring to connect with the I2C bus pins; and
c) test the I2C bus for the presence of a device at that address (or better, check for all devices on the bus at any address.) - Thereafter, you can only communicate with the TFMini+ in I2C mode. You can use the TFMini-Plus-I2C library for this purpose. For any device not set to the default address of
0x10
, remember to include the correct I2C address with each command, including the command togetData();
. - Sending a command to
Restore_Factory_Settings
will not change the communication mode back to UART. However, it will change the I2C address of the TFMini+ back to its default value of0x10
.
from tfmini-plus.
Related Issues (20)
- 'fdevopen' was not declared in this scope HOT 2
- TFmini plus timeout? HOT 7
- How to change 100Hz measurement frame rate to 1000HZ? HOT 1
- printf.h: No such file or directory HOT 3
- How to use TFmini plus distance reading as a threshold? HOT 2
- Failure rate HOT 5
- "Status: Checksum" Galore HOT 4
- Wrong constant in TFMPlus.h HOT 2
- sendCommand() not working with Arduino MKR GSM 1400 HOT 5
- Signal saturation Data - Error HOT 5
- Setting precision to mm HOT 2
- TFMini-Plus Neuf HOT 5
- What is this library called in the Arduino examples HOT 7
- 2x (or more) devices on one board? HOT 19
- Any working code in arduino uno? HOT 1
- How to use multiple TFMini Plus and TF02 Pro sensors on AT Mega 2560? HOT 5
- got message - Status: HEADER Data: 20 09 68 FF 20 09 68 FF 20 HOT 1
- Need some help with TF-Luna and Seeeduino XIAO HOT 3
- PIN_WIRE_SDA' was not declared in this scope
- RPi Pico CRC check error (memcpy)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tfmini-plus.