Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Firmata4j with Grove Beginner Kit to make Ultrasonic Radar #64

Open
vikaspsgupta opened this issue Jul 26, 2023 · 1 comment
Open

Comments

@vikaspsgupta
Copy link

I am working on an assignment to create ultrasonic radar but facing issue, while using the Grove Ultrasonic sensor. I have connected the Ultrasonc sensor to D7 I/O port. But facing issue on how to use it, basically the sensor has to work as transmitter and receiver both, so it should work as input and output too. But i am not able to get how i can use the Firmata4J to transmt the pulse and then receive it. Can someone help on it? If its a limitation, any clue how to get rid of it?

@kurbatov
Copy link
Owner

kurbatov commented Oct 6, 2023

Hi @vikaspsgupta,

I'm afraid that interactions with the Groove Ultrasonic sensor is possible only from the firmware level because serial communication between the board and a java application is too slow for the sensor's protocol.

Please, use this library as a reference of how to make the sensor work https://github.com/Seeed-Studio/Seeed_Arduino_UltrasonicRanger

It is possible to use the library in order to add support for the sensor's protocol into the firmata firmware you upload to the board. But that's an advanced level problem that I didn't have guts to solve when actively tinkering with Arduino, Firmata and firmata4j.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants