Post Reply 
 
Thread Rating:
  • 1 Votes - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue: B-robot without Wifi
06-26-2015, 10:14 AM
Post: #1
Issue: B-robot without Wifi
Hi,

We uploaded the Arduino code provided onto the Leonardo and used two stepper motors, which I think are the right ones (they are NEMA 17s), the motor drivers are DRV 8825. The problem is that when we ran the code it got stuck at initializing the stepper motors. There is no error message. The sketch just doesn't get past the "initializing steppers" part of the code. Do you have any idea what's going on?

We plan to run the robot without a WiFi board at first-- just to try to get it to stand still, and then give it a pre- programmed cycle. We thought that after that we could go straight to self-control with a distance sensor... Maybe the Arduino sketch isn't completing because it's supposed to have Wi-Fi hardware attached to the circuit, or just be connected to Wi-Fi? We are also using two 5 packs of 1.5 V rechargeable batteries, instead of one 8 pack of regular alkaline batteries. Is this okay?

Thank you for your help. Our robotics club is really looking forward to getting this to work.

Cheers,
Find all posts by this user
Quote this message in a reply
06-26-2015, 10:45 AM
Post: #2
RE: Issue: B-robot without Wifi
Hi Claire,
Could you provide more info about your B-robot?
What IMU are you using? Any wheel movement? Are you following these steps?

1) Download the code from github
2) Upload it using ARDUINO IDE
3) Mount the B-robot Brain SHIELD+ Stepper motors driver + WIFI module+ Arduino LEONARDO all together
4) Lay down the B-robot in a static horizontal position in order to let it calibrate itself
5) Once self-calibrated, B-robot will move its wheels a little.
6) Time to stand up!

I recommend to put some "print" commands in the Arduino code as "progress flags" in order to know where exactly you are. This will help you to debug your code:
Serial.println("I have reached this point of the code:10")

Cheers
Find all posts by this user
Quote this message in a reply
06-26-2015, 01:20 PM (This post was last modified: 06-26-2015 01:43 PM by Claire.)
Post: #3
RE: Issue: B-robot without Wifi
We didn't get a WiFi module. Can we get the B Robot to work without WiFi?

The IMU is this product:

https://www.adafruit.com/products/2021

We got it to work-- when you move it around you see the values changing on the Arduino Serial Monitor, and it also drives a visual representation with Processing, like in this video.

https://m.youtube.com/watch?v=nlXqIe9-R7s

If we have to order Wi Fi modules, will this one work?

https://www.sparkfun.com/products/10822
Find all posts by this user
Quote this message in a reply
06-26-2015, 02:43 PM
Post: #4
RE: Issue: B-robot without Wifi
There is also no motor movement whatsoever. I'll try uploading a picture of the layout so you can get a better look
Find all posts by this user
Quote this message in a reply
06-27-2015, 05:31 AM
Post: #5
RE: Issue: B-robot without Wifi
I'm sorry, I couldn't upload a picture. It looks like I have all the hardware except the WiFi module. Is it possible for me to build the B Robot using the components I have, without the WiFi module?
Find all posts by this user
Quote this message in a reply
06-28-2015, 10:41 AM
Post: #6
RE: Issue: B-robot without Wifi
(06-27-2015 05:31 AM)Claire Wrote:  Is it possible for me to build the B Robot using the components I have, without the WiFi module?
Yes!
Find all posts by this user
Quote this message in a reply
06-30-2015, 01:12 PM
Post: #7
RE: Issue: B-robot without Wifi
Claire, try to add some photos so we can get an idea.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)