4Borg issue
Forums:
Hi, i've just built my 4Borg and loaded the program into my it. Due to storage of red and black wires, i bought some myself and used it on the 4borg. ( the wires are similar ).
i program it with the 2 automatic installer as well as the camera option.
however when i try to let the 4borg run on its own, it cant boot up on its own. im using a new 9v battery
can you help me with this?
At this time i also tried the web UI but am stuck at this point.
(pi@raspberrypi:~ $ sudo ~/diddyborg-web/4BorgWeb.py
Loading PicoBorg Reverse on bus 1, address 44
Missing PicoBorg Reverse at 44
PicoBorg Reverse was not found
Trying bus 0 instead
Loading PicoBorg Reverse on bus 0, address 44
Traceback (most recent call last):
File "/home/pi/diddyborg-web/4BorgWeb.py", line 38, in
PBR.Init()
File "/home/pi/diddyborg-web/PicoBorgRev.py", line 264, in Init
self.Init(False)
File "/home/pi/diddyborg-web/PicoBorgRev.py", line 234, in Init
self.bus = smbus.SMBus(self.busNumber)
IOError: [Errno 2] No such file or directory)
Sorry this is my first time and im new to robotics. hopefully im able to get some help.
Thanks,
JS
piborg
Fri, 04/29/2016 - 15:02
Permalink
Cannot see the PicoBorg Reverse
This error is usually caused because the script cannot talk with the PicoBorg Reverse.
The most likely culprit is the 3-pin cable between the Raspberry Pi and PicoBorg Reverse is not making good contact.
You should have had a spare 3-pin cable in the 4Borg kit.
I would suggest that you try changing the 3-pin cable which carries the I2C signals for a spare and see if the problem goes away.
It is the cable which is connected to the pin marked '1' on the PicoBorg Reverse connector and '#1' in this diagram:
soccer_30072@ho...
Sat, 04/30/2016 - 14:35
Permalink
Hi there,
Hi there,
i tried changing with 3 different cable but picoborg reverse is having the same error. It is successfully installed into the raspberry but the picoborg reverse isnt giving any response.. is there any way to help with this?
If i use my cables for 4 of the joints, will it affect the system?
Thanks
soccer_30072@ho...
Sat, 04/30/2016 - 15:10
Permalink
Hi i managed to find the
Hi i managed to find the picoborg reverse already. however when i plug in the red cable of the battborg, the system will shut down. any help?
piborg
Sat, 04/30/2016 - 15:44
Permalink
Wiring trouble
It sounds like something might be connected incorrectly.
The most likely reason the Raspberry Pi is powering off is that the 5V or 3.3V pins are getting connected to the GND pin.
Can you take a couple of photos of how things are currently wired so we can see?
soccer_30072@ho...
Sat, 04/30/2016 - 16:24
Permalink
Thanks for the quick response
Thanks for the quick response. I'm moving forward well and connected the cables properly already. My Brother built the 4borg in the opposite manner where the battery is on the other side. And the web ui is working. However, I can't manage to get it moving and boot it up on its own with the 9v battery
soccer_30072@ho...
Sat, 04/30/2016 - 16:26
Permalink
1 more photo
1 more photo
piborg
Sat, 04/30/2016 - 16:54
Permalink
Battery connections
Just to check does the LED on the PicoBorg Reverse come on when:
If it is then the BattBorg should be supplying 5V to the Raspberry Pi and the 4Borg should be working.
Given that the chassis is inverted it is quite possible that the + and - connections from the 9V board are also back-to-front.
If the LED is not coming on with the above list then the BattBorg is likely no supplying 5V to the Raspberry Pi.
Try removing the BattBorg from the PicoBorg Reverse and see if you are able to make the wheels turn.
You will need the 9V battery plugged in and the switch turned on along with the USB power attached to try this.
soccer_30072@ho...
Wed, 05/04/2016 - 12:37
Permalink
Hi there, i got things sorted
Hi there, i got things sorted out and the 4borg runs perfectly fine with the example scripts. however when i wanna control it myself with the web ui, it doesnt move when i press any buttons.. Any help?
piborg
Wed, 05/04/2016 - 13:22
Permalink
Web UI
Is the speed slider fully to the right?
What does the
Speeds
line say when you press the various buttons?soccer_30072@ho...
Thu, 05/05/2016 - 09:42
Permalink
Yes I've moved it all the way
Yes I've moved it all the way to the right. Speeds line say 100% but the robot isn't moving
piborg
Thu, 05/05/2016 - 10:20
Permalink
Other scripts running?
It sounds like there may be another script running which is also setting the output speeds.
Are you running any other scripts via
rc.local
orcrontab
?soccer_30072@ho...
Thu, 05/05/2016 - 11:52
Permalink
Thanks for the fast reply. I
Thanks for the fast reply. I got it sorted out. Now I put in the script followball.py and its responding. However I can't get it to move. Is it because I'm on test mode? How do I exit test mode. I put it into crontab already.
piborg
Thu, 05/05/2016 - 16:17
Permalink
Test mode?
There is no test mode in the 4BorgFollowBall.py script.
When it is displaying the two numbers they are the speeds sent to the left and right drive.
Are you still running the WebUI script at the same time?
If you run two of the example scripts they will prevent each other working.
soccer_30072@ho...
Fri, 05/06/2016 - 07:48
Permalink
I am not running the web ui
I am not running the web ui script only the followball.py script and the 4borg doesn't move although it have the numbers on the screen
piborg
Fri, 05/06/2016 - 10:28
Permalink
Testing the 4Borg
As the motors are not running I would recommend checking the drive is working manually.
First kill all any running Python scripts to make sure nothing is running:
sudo killall python
Second load up a python session from the 4Borg directory:
cd ~/4borg
python
Lift the 4Borg off the ground so the wheels can freely rotate
Now run these lines from python:
Let us know if the motors moved and what the output from Python is.
If the motors did turn after that try the 4BorgFollowBall.py script again and see if it is now working.
soccer_30072@ho...
Fri, 05/06/2016 - 09:35
Permalink
secondly, how do i access the
secondly, how do i access the image that the 4borg is processing while detecting the ball? the picture below shows an example
piborg
Fri, 05/06/2016 - 10:35
Permalink
Accessing images
What you need to do is create a window with a name for each image you wish to show like this:
This only has to be done once per window you need.
Now you can show an image on that window using the same name and passing the image like this:
If you want to draw the
contours
found on the image you will probably want to use thedrawContours
function:http://docs.opencv.org/3.0-beta/modules/imgproc/doc/drawing_functions.ht...
soccer_30072@ho...
Sat, 05/07/2016 - 16:28
Permalink
im sorry im kinda new at this
im sorry im kinda new at this can u help me step by step, like how to create a window with this. really sorry for my incompetence.
soccer_30072@ho...
Sun, 05/08/2016 - 05:00
Permalink
How do I make the drive
How do I make the drive automatic ? I can't get the motors to move when in followball script
piborg
Mon, 05/09/2016 - 10:54
Permalink
Testing the 4Borg
What are the results from the previous test I asked you to run:
https://www.piborg.org/comment/4804#comment-4804
soccer_30072@ho...
Mon, 05/09/2016 - 22:17
Permalink
Loading PicoBorg Reverse on
Loading PicoBorg Reverse on bus 1, address 44
Found PicoBorg Reverse at 44
PicoBorg Reverse loaded on bus 1
False
True
0.698039215686
-0.498039215686
this is what i got but motors not moving
piborg
Tue, 05/10/2016 - 11:11
Permalink
GetDriveFault returns True
The important bit of information from this is that
PBR.GetDriveFault()
returnsTrue
.This means the board is detecting a problem and refusing to power the motors.
The most likely explanation is that the battery is getting flat.
If you are using a rechargeable 9V try recharging the battery fully.
If you are using a non-rechargeable 9V try replacing it with a fresh battery.
If that does not help see the GetDriveFault returns
True
section on the troubleshooting page:https://www.piborg.org/picoborgrev/troubleshoot