Can't get wifi to work with my monsterborg
Forums:
hello all,
I am a complete newbie here and need somehelp
To my knowledge I have followed the instructions correctly (although since I am new to this I could have made a mistake)
So -
everything is installed and assembled
I reserved an ip address on my router (SKY)
when i put the ip address into the browser it returns saying refused to connect
so how do i speak to the MonsterBorg through the wifi?
thanks for your help
k
piborg
Thu, 09/14/2017 - 12:02
Permalink
IP address for the MonsterBorg
There are a few possible problems here:
You can check by running the command
ifconfig
on the Raspberry Pi and get the IP for the WiFi connection.If you are trying to run the script at startup using
/etc/rc.local
the correct command is:sudo /home/pi/monsterborg/monsterWeb.py &
Make sure
sudo
is at the front, the line is above theexit 0
line, it ends with&
and you have used/home/pi
instead of~
.The Pi Camera needs to be attached and enabled on the Raspberry Pi for the Web UI script to work correctly.
There was some extra software to install for using the camera. You can install all of it with the command:
sudo apt-get -y install python-picamera libcv-dev libopencv-dev python-opencv
If the script is running correctly it should have the LED set to blue to show it is ready for a connection. If the LED is off then it probably means the script tried to run and failed for some reason.
Kam Srivastava
Thu, 09/14/2017 - 19:43
Permalink
Many thanksfor this -
Many thanksfor this -
set up has bee successful! and I have run the MonsterBorg around the house. Lots of fun.
however I am only getting 10 to fifteen minutes run time, then the web page locs me out. the batteries are still good, and I only have to turn the unit off and turn it back on and the web page is good to go again.
any ideas?
Kam
piborg
Fri, 09/15/2017 - 11:26
Permalink
Batteries
The batteries could be the problem, some work better than others in a robot.
If you are using alkaline (non-rechargeable) AAs I would suggest getting some rechargeable NiMHs instead. Read this post for a quick explanation on the differences between the battery types :)
Kam Srivastava
Fri, 09/15/2017 - 14:40
Permalink
Many thanks for the reply
Many thanks for the reply
I am using Duracell rechargeable NiMH batteries.
Just for consideration - would a 7.2v NiCd battery from an RC car power the MonsterBorg?
thanks
Kam
piborg
Fri, 09/15/2017 - 16:32
Permalink
Battery connection
In that case I would makes sure that the battery holder is connected firmly into the 9V style connectors and that it is strapped in nice and tight. My best guess is that it might be briefly loosing contact with the batteries or making a poor connection somewhere.
A 7.2 V NiCad would work, but just barely. The motors are designed to work at 12 V so they will move much slower.
Kam Srivastava
Fri, 09/15/2017 - 20:03
Permalink
many thanks
many thanks
So i tried to wire up the NiCd battery into the borg and I think I got the polarity wrong. I think I have burnt it out. There was no response on switch.
On reverting to the original battery back nothing on switch on.
The raspberryPi works with mains power / monitor / keyboard and mouse however so all isn't lost.
piborg
Mon, 09/18/2017 - 11:44
Permalink
Oh no :(
That is terrible news, it sounds like the ThunderBorg is probably dead in that case :(
If you are lucky the Raspberry Pi will be completely fine, however it is possible that the GPIO pins may not be working correctly anymore. I would suggest we try and use WiringPi to see if the Pi has faulty GPIO pins.
First disconnect everything from the GPIO pins.
Next download and build the WiringPi code:
After it has built run the GPIO pin tester:
You should see some diagnostics after pressing ENTER:
Hopefully all of the end lines say
OK
, otherwise the GPIO is not working correctly on the Raspberry Pi itself.After the test restart the Raspberry Pi to reset the GPIO pins back to their standard behaviour.
theborg
Tue, 09/19/2017 - 17:34
Permalink
If you know how to solder you
If you know how to solder you might want to check out my similar situation here.
Kam Srivastava
Wed, 09/20/2017 - 23:38
Permalink
GPIO test
hello
tried the commands for the pin test but i am only getting the following response
Cloning into 'wiringPi'...
fatal: unable to connect to :
: Servname not supported for ai_socktype
not sure where to go from here - I have tried a few things from google to download wiringPi but I keep getting the same response.
cheers
Kam
Kam Srivastava
Thu, 09/21/2017 - 12:26
Permalink
GPIO test
Managed to perform the test.
thankfully everything is ok. Ordered a new Thunderborg board hopefully back up and running soon.
Kam
piborg
Fri, 09/22/2017 - 11:18
Permalink
GPIO test
Glad to hear that your Raspberry Pi survived intact :)
Out of curiosity what did you need to do to get past the problem with the pin test program?
Kam Srivastava
Mon, 09/25/2017 - 16:32
Permalink
unsure what i did
hello
i will be honest I woke up in the morning and thought I would just give the GPIO test another try and it worked.
strange....just hope the board is still good
kam
Kam Srivastava
Wed, 09/27/2017 - 01:12
Permalink
new monsterborg board
installed teh new monsterborg board - sadly still no joy
no lights no nothing
pretty fed up with my antics now. will try charging the batteries and trying again. but not very confident that will do anythinig
kam
piborg
Wed, 09/27/2017 - 10:18
Permalink
:(
That is not good to hear, no power at all sounds like something is actually damaged.
One thought is that the ThunderBorg does not start up and show any lights until the 3V3 line is powered on the Raspberry Pi. If you have a multimeter it might be worth checking what the voltage is shown on the 3V3 pin when the Pi is powered on its own.
Kam Srivastava
Wed, 09/27/2017 - 13:26
Permalink
bailing out
will be putting the kit minus the raspberry pi on ebay
chalk this one up to experience.
thanks
Kam