No startup sequence after reprogramming
Just finished putting the brobot together and let it run unmodified without issues other than shaking arms while balancing.
Decided to look in the code to see if I could find the issue or tuning. Uncommented the external wifi settings and uploaded sketch to test the mode. Couldn’t get that working so I commented those lines and reuploaded the sketch.
Now it doesn’t do anything. No startup sequence of adjusting the servo or anything. When I connect to the jjrobots wifi, it doesn’t read any angles or battery levels.
Did I brick the devia board? I uploaded the devia 2 board test code and the serial monitor stops at test wifi, generating network jjrobots_test. The led stays red. The odd thing is that it still created the jjrobots_xx wifi network.
12:57:40.208 -> JJROBOTS DEVIA BOARD TEST CODE v1.0
12:57:40.225 -> SWITCH Not Pressed
12:57:40.225 -> TEST: LEDS…
12:57:41.858 -> TEST: Checking IMU…
12:57:41.858 -> WHO_AM_I : 11, error = 0
12:57:42.191 -> TEST: WIFI. Generating network JJROBOTS_TEST
This is strange. What Arduino IDE did you use to upload the code? Did you select the correct board?
I used the arduino.cc ide 1.8.13. arduino zero native usb port.
It should work. Try this:with the TEST CODE uploaded. Start the board (connect it to 12V) with the A button ( button between MOTOR 2 and 3 headers) pressed. Check the IDE serial monitor for different messages:
If that works, that means the processor is working and the board should be OK.
The reason the WIFI is still showing its SSID is that the ESP still has the old code as an independent unit.
When doing that, the serial monitor just shows:
who am i
test wifi generating network
It’s now skipping the switch pressed/not pressed state.
Repeatedly pressing the switch does not trigger any responses as though it is stuck on generating network.
I’ve the exact same problem actually.
Interesting that you joined 9 minutes ago and your posts aren’t moderated??
Strange thing is, i can’t find the Arduino/genuino zero on the package in IDE. Can be this a problem ?
I thought I already replied to this but if you’re on the latest 1.8.13 IDE, I think you’ll have to go into board manager and download the right core.
It must be something with the code. I’m using the BROBOT_EVO2_23_M0 code from the website.
It seemed to get stuck at initiating the network so I changed serial1 to serialusb where it prints the status. I was able to change the AP to just jjrobots and have the green LED plus IMU status updates through console.
Going back to the code from the website, it compiles and uploads fine but with debug = 8, I get this:
18:15:54.631 -> JJROBOTS
18:15:54.820 -> Don’t move for 10 sec…
18:15:54.820 -> WHO_AM_I : 11, error = 0
18:15:55.486 -> WIFI init
I have the exact same problem. However things seem to be working when commenting out
immediately after the serialUSB print line which generates: TEST: WIFI. Generating network JJROBOTS_TEST
I have the same problem with serial1.flush().
Don’t move for 10 sec…
WHO_AM_I : 11, error = 0
Can you help me. I have purchase 4 Robots and nothing works after flashing the BROBOT_EVO2_23_M0 code from the website.
When i use the SAMD-Driver V1.8.10 then the Board works. With the driver 1.8.11 the problem occurs.