No startup sequence…
 
Share:
Notifications
Clear all

No startup sequence after reprogramming


178c1d4bbe94f96f9d5d0d22a7975243?s=80&d=mm&r=g
(@ddlaz)
New Member Customer
Joined: 3 months ago
Posts: 4
Topic starter  

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.208 ->
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


Quote
350a26dd49eb55d3494500240423a207?s=80&d=mm&r=g
(@robotn1)
Honorable Member Admin
Joined: 5 years ago
Posts: 701
 

This is strange. What Arduino IDE did you use to upload the code? Did you select the correct board?


ReplyQuote
178c1d4bbe94f96f9d5d0d22a7975243?s=80&d=mm&r=g
(@ddlaz)
New Member Customer
Joined: 3 months ago
Posts: 4
Topic starter  

I used the arduino.cc ide 1.8.13. arduino zero native usb port.


ReplyQuote
350a26dd49eb55d3494500240423a207?s=80&d=mm&r=g
(@robotn1)
Honorable Member Admin
Joined: 5 years ago
Posts: 701
 

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:

 SWITCH Pressed

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.


ReplyQuote
178c1d4bbe94f96f9d5d0d22a7975243?s=80&d=mm&r=g
(@ddlaz)
New Member Customer
Joined: 3 months ago
Posts: 4
Topic starter  

When doing that, the serial monitor just shows:

checking IMU…

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.


ReplyQuote
e56634bcb2ae5cc7cae3dc9b36f41151?s=80&d=mm&r=g
(@paracethamol)
New Member
Joined: 2 months ago
Posts: 2
 

I’ve the exact same problem actually.


ReplyQuote
178c1d4bbe94f96f9d5d0d22a7975243?s=80&d=mm&r=g
(@ddlaz)
New Member Customer
Joined: 3 months ago
Posts: 4
Topic starter  

Interesting that you joined 9 minutes ago and your posts aren’t moderated??


ReplyQuote
e56634bcb2ae5cc7cae3dc9b36f41151?s=80&d=mm&r=g
(@paracethamol)
New Member
Joined: 2 months ago
Posts: 2
 

Strange thing is, i can’t find the Arduino/genuino zero on the package in IDE. Can be this a problem ?


ReplyQuote
178c1d4bbe94f96f9d5d0d22a7975243?s=80&d=mm&r=g
(@ddlaz)
New Member Customer
Joined: 3 months ago
Posts: 4
Topic starter  

@paracethamol

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.


ReplyQuote
178c1d4bbe94f96f9d5d0d22a7975243?s=80&d=mm&r=g
(@ddlaz)
New Member Customer
Joined: 3 months ago
Posts: 4
Topic starter  

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


ReplyQuote
7efedf1c61c6199ec4c497b7151fb8d5?s=80&d=mm&r=g
(@rstcologne)
New Member Customer
Joined: 2 months ago
Posts: 3
 

I have the exact same problem. However things seem to be working when commenting out

Serial1.flush();

immediately after the serialUSB print line which generates: TEST: WIFI. Generating network JJROBOTS_TEST


ReplyQuote
92e8ca4e4cb04267d58beae158d54613?s=80&d=mm&r=g
(@franky1966)
New Member
Joined: 1 month ago
Posts: 2
 

I have the same problem with serial1.flush().

JJROBOTS
Don’t move for 10 sec…
WHO_AM_I : 11, error = 0
WIFI init

Can you help me. I have purchase 4 Robots and nothing works after flashing the BROBOT_EVO2_23_M0 code from the website.


ReplyQuote
92e8ca4e4cb04267d58beae158d54613?s=80&d=mm&r=g
(@franky1966)
New Member
Joined: 1 month ago
Posts: 2
 

When i use the SAMD-Driver V1.8.10 then the Board works. With the driver 1.8.11 the problem occurs.

Greatings

Frank


ddlaz liked
ReplyQuote
Share: