Jolt serial comms... Grove Doppler Radar #7810
Replies: 3 comments 4 replies
-
I'm so fed up with trying that I'm struggling to cut and paste examples...
Tried on Serial2 as well, and across H4/H5 pins |
Beta Was this translation helpful? Give feedback.
-
Made a breakthrough, I found I could get a wired loopback to work on the scl/sda on Q3. So now I have made contact with the Grove, powered on the common 5V on the main rail but sending and receiving data on the Q3 connector. That will do for now... |
Beta Was this translation helpful? Give feedback.
-
So, to recap, I still would prefer to use a serial on the high power ports of the Jolt but I have a working connection to the Grove Doppler Radar module as follows:
Which reports as:
My next problem is that the baud rate of 115200 is leaving very little capacity for processing without causing "New interpreter error: UART_OVERFLOW" messages. The Grove seems to be very chatty, it never shuts up! It sends 4 bytes continuously just to say it's still there! I've paired down the code which looks for the start byte but I still need to amass 10 bytes before parsing the message. I use a setTimeout when I hit 10 bytes to give the processor time to catch up before parsing, and then another setTimeout before displaying the message. The problem is, I was hoping to have this working inside another app which needs to do more compute. Is there anything I can do to offload the buffer checking to ignore unwanted serial data? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've run out of ideas to get the Jolt to communicate with the Grove Doppler Radar module (https://wiki.seeedstudio.com/Grove-Doppler-Radar/). The Grove powers up and has onboard LEDs showing it's functioning but I can't get serial.on('data' to fire on the Jolt.
I've got my code working from loopbackA to B, and checksums right, but when I move to the hardware pins I get nothing. I've been through all the Espruino troubleshooting guides, and setting the Grove to one side for a minute, I can't even get a single wire loopback test to work on the H0-7 pins of the Jolt, like this:
Serial1.setup(9600, {rx:serial_pin, tx:serial_pin});
Serial1.on('data', function (data) { print(" "+data); });
Serial1.print("Hello World");
Beta Was this translation helpful? Give feedback.
All reactions