Comments (5)
Hello,
Thank you for the sketch. With no output at all, the execution must stop somewhere before the first Serial.println()
instruction. Could you add a Serial.println("Hi there!");
after Serial.begin()
and another after Serial1.begin()
?
Although I am not familiar with the Arduino MKR GSM 1400, I understand that MKR boards address pins D13 and D14 as Serial1.
Would you be kind enough to send me a picture of your setup?
Thanks,
Bud Ryerson
San Francisco
from tfmini-plus.
Hello,
I tried adding that and it prints without problems, so it really seems that execution stops at sendCommand().
Yes, Serial1 should be at D13 and D14, and that is how I connected it, here is the photo of my setup:
from tfmini-plus.
Great! Thanks.
I tried to make this library as bullet-proof as I could imagine - so that it would return something and not just hang. I'm really sorry about the situation. I want to help, and I want to understand what's going on.
I am mystified. You got past Serial1.begin();
but that doesn't return much information. Now please show me how you get distance data. Maybe after delay(500);
you could add some code like this?
int16_t tfDist = 0;
tfmP.getData( tfDist);
Serial.println( tfDist);
And if that doesn't work, try something more basic, like:
if( Serial1.available()) Serial.println( Serial1.read());
else Serial.println( "Serial1 data not available.");
I hope did that right. I'm not at the lab. Please Let me know what happens.
Thanks,
Bud
from tfmini-plus.
Hi,
I managed to resolve my issue, although not directly. First I used the provided GUI to change the communication mode to I2C (because that's what I'll be using for this project). After changing the mode, sending commands still didn't work. However, when I powered my Arduino from bench power supply in addition to connecting it to the PC via USB, everything started behaving normally.
I don't know if power was the culprit with serial communication also, but currently everything is working as expected with I2C version of this library, so this issue can be closed.
Thank you for your help!
from tfmini-plus.
That sounds right, and it's good information for the next person.
Thanks.
from tfmini-plus.
Related Issues (20)
- 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
- 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)
- Licence ? HOT 3
- Temperature HOT 2
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.