KS1 No ZeroBorg boards found, cannot set a new I?C address!
Forums:
I am still trying to get the first one of my 15 KS1 working.
I am now getting this error after stepping through the initial setup:
>>> ZeroBorg.SetNewAddress(10)
Scanning I?C bus #1
No ZeroBorg boards found, is bus #1 correct (should be 0 for Rev 1, 1 for Rev 2)
No ZeroBorg boards found, cannot set a new I?C address!
I am powering the pi zero w with usb power and 9 volts power supply into the screw in bus...tested power and it is there. [ is that a correct way to supply power?
The 6 pin extender pins were tested and there is continuity from KS1 to the pi.
Any ideas?
I am hoping I can get through this stage so I can quickly get the other boards setup.
piborg
Mon, 06/12/2017 - 09:39
Permalink
No ZeroBorg boards found
There are two obvious possibilities in this case:
We did have some trouble with the software not being able to talk to ZeroBorgs with the latest versions of Raspbian recently. This could have the same symptom you are describing. The library was updated to fix the problem about two weeks ago, if you installed our software before that it may still have the problem.
I would start by re-installing our software to see if the latest version fixes your problem. See this post: ZeroBorg library fix.
After doing that I would try a simple check to see if the board is working with the standard address before trying to change the address. First load Python from the ZeroBorg directory:
Next run these commands in Python to check if the ZeroBorg is talking correctly:
If everything worked the LED on the ZeroBorg should now be on. If not make a note of all the messages shown so we can try and figure out what the trouble is.
stephen.hoffer@...
Mon, 06/12/2017 - 15:39
Permalink
The errors
I am sure that the version of the software was your newest...but I reinstalled anyway.
Results of the test commands:
>>> import ZeroBorg
>>> ZB = ZeroBorg.ZeroBorg()
>>> ZB.Init()
Loading ZeroBorg on bus 1, address 40
Traceback (most recent call last):
File "", line 1, in
File "ZeroBorg.py", line 304, in Init
self.i2cRead = io.open("/dev/i2c-" + str(self.busNumber), "rb", buffering = 0)
IOError: [Errno 2] No such file or directory: '/dev/i2c-1'
>>> ZB.SetLed(True)
Failed sending LED state!
>>>
piborg
Mon, 06/12/2017 - 16:00
Permalink
I2C bus not found
The error you are seeing means that the code cannot find the I2C bus. This means it cannot talk to the ZeroBorg.
There are two likely candidates here:
It is fairly quick to test which is the case. If you run these two commands:
either one of them will work or both will fail.
If one of them works it should show something like this:
If
sudo i2cdetect -y 0
worked then all you need to is openZeroBorg.py
in a text editor and look for this line:and change it to
and check things all work correctly. If they do you will want to add the bus number when you call the
SetNewAddress
orScanForZeroBorg
commands as well, like this:If both commands failed with a message like this:
then the I2C driver is not correctly configured.
To fix that problem use
sudo raspi-config
and make sure the I2C driver is enabled (see ZeroBorg: Getting Started for instructions). After you have done that restart the Raspberry Pi get our setup to re-run like this:Restart the Raspberry Pi again and then check if either of the
i2cdetect
commands above work now. If one does retry the ZeroBorg check to see if it now works.stephen.hoffer@...
Mon, 06/12/2017 - 16:55
Permalink
These were the steps that got
These were the steps that got it to work
piborg
Mon, 06/12/2017 - 17:44
Permalink
Good to know
Glad to hear you got the I2C working :)
I will make a note of the fix in case anyone else has the same issue.
stephen.hoffer@...
Mon, 06/12/2017 - 18:35
Permalink
One additional bit of information
Just an FYI.
When I ran the sudo raspi-config, there was no 8 Advanced Option in order to enable the I2C.
Was there a particular release that has this option? I will look into this later.
Thank you. I will continue learning how to make this all work.
piborg
Tue, 06/13/2017 - 09:18
Permalink
Raspi-conifg changes
Thanks for letting us know, I guess our instructions need updating again :)
They do seem to change the options in raspi-config every so often, the instructions on the website were definitely correct for the latest version around 6 months ago. They have probably added some new functionality and decided to re-arrange what sub menus are shown.
stephen.hoffer@...
Fri, 06/16/2017 - 03:05
Permalink
Next issue
So the LED lights with a SetLed(true) and off when SetLed(false)
But when I attempt:
ZeroBorg.SetNewAddress(10)
The result is
Scanning I?C bus #1
Found ZeroBorg at 40
1 ZeroBorg found
Changing I?C address from 40 to 0A (bus #1)
Missing ZeroBorg at 40
Failed to set. Ew I?C address...
Any ideas?
stephen.hoffer@...
Fri, 06/16/2017 - 07:34
Permalink
These instructions worked:
These instructions worked:
import ZeroBorg
ZB = ZeroBorg.ZeroBorg()
ZB.i2cAddress = 0x40
ZB.Init()
But not the others that define setting an address in this fashion:
ZeroBorg.SetNewAddress(10)
Am I not understanding the difference?
piborg
Fri, 06/16/2017 - 11:37
Permalink
Our fault
There is a mistake in the
ZeroBorg.py
script, causing theSetNewAddress
function to fail regardless of if the board is attached or not.I have fixed the error and re-uploaded the ZeroBorg code to our website. If you could re-installing our software and try the using
SetNewAddress
again. See this post for the re-install instructions: ZeroBorg library fix.Sorry about all the trouble getting going :(
Deadwarrior-61
Fri, 10/19/2018 - 12:09
Permalink
Hello
Hello
Have got an error => loading ZeroBorg on bus 1, address 40
Missing ZeroBorg at 40
ZeroBorg was not found
where I do sudo i2cdetect -y 1
I haven't got enything on the tab
I recieved my KS1 last day
please help me
piborg
Fri, 10/19/2018 - 13:05
Permalink
Check cabling
The most likely cause is a connection problem between the ZeroBorg and the Raspberry Pi.
Are you using wires to connect the ZeroBorg to the Raspberry Pi, or is it directly plugged in to the GPIO header?
Photos of the connections would be helpful :)
Deadwarrior-61
Fri, 10/19/2018 - 13:46
Permalink
J'ai utilisé le la manière
J'ai utilisé le la manière temporaire montré dans le "getting started" en tordent les broche, la LED ne s'arrête pas de clignoter dès le démarrage de la pi
Deadwarrior-61
Fri, 10/19/2018 - 17:06
Permalink
Voici comment j'ai relié la
Voici comment j'ai relié la zeroborg
piborg
Fri, 10/19/2018 - 19:02
Permalink
Which LED keeps flashing?
Do you mean the LED on the ZeroBorg, or the LED on the Raspberry Pi?
Deadwarrior-61
Sat, 10/20/2018 - 09:06
Permalink
The red LED of the zeroborg
The red LED of the zeroborg
piborg
Sat, 10/20/2018 - 15:23
Permalink
ZeroBorg restarting
The LED should flash once at power-up so it is likely that the ZeroBorg is restarting itself. This usually indicates a power problem.
The most likely culprits are:
What is the Raspberry Pi getting its 5V power from?
Deadwarrior-61
Sat, 10/20/2018 - 17:11
Permalink
La ZeroBorg tire sont
La ZeroBorg tire sont alimentation d'un boîtier de 4 pils, j'ai testé les pils au tournevis testeur et il s'allume
piborg
Sat, 10/20/2018 - 19:16
Permalink
5V power
What are you using to power the Raspberry Pi itself?
Deadwarrior-61
Sat, 10/20/2018 - 19:52
Permalink
J'utilise un adaptateur de
J'utilise un adaptateur de téléphone, sur secteur
piborg
Sun, 10/21/2018 - 16:07
Permalink
Pin connections
In that case the most likely cause is that the GPIO connections are making poor contact.
Deadwarrior-61
Sun, 10/21/2018 - 18:53
Permalink
A votre avis comment es que
A votre avis comment es que je peux faire pour résoudre le problème?
piborg
Mon, 10/22/2018 - 17:28
Permalink
Soldering is the best idea
The temporary connection method does not always work very well. If you have access to a soldering iron I would suggest soldering the connections on to the GPIO.
Deadwarrior-61
Mon, 10/22/2018 - 18:20
Permalink
Très je revient vers vois des
Très je revient vers vois des que j'ai du nouveau
Deadwarrior-61
Tue, 10/30/2018 - 17:04
Permalink
It's work
It's work