Code Monkey home page Code Monkey logo

Comments (5)

budryerson avatar budryerson commented on July 24, 2024

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.

ibrcic avatar ibrcic commented on July 24, 2024

Hello,

I tried adding that and it prints without problems, so it really seems that execution stops at sendCommand().

image

Yes, Serial1 should be at D13 and D14, and that is how I connected it, here is the photo of my setup:

189799267_1409582969403840_9180174187597714258_n

from tfmini-plus.

budryerson avatar budryerson commented on July 24, 2024

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.

ibrcic avatar ibrcic commented on July 24, 2024

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.

budryerson avatar budryerson commented on July 24, 2024

That sounds right, and it's good information for the next person.
Thanks.

from tfmini-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.