Hello everyone,
We are building a custom deck that closely resembles the Z-Ranger for some research purposes. We were trying to write to the one wire (DS28E05) and are having some issues.
Do we need to write to the one wire since it resembles the Z-Ranger? (We are hoping to add more components to the same deck later on, but for now its only the laser sensor).
Thanks!
[SOLVED] Custom Build Deck - One Wire - Writing to EEPROM DS28E05
-
- Beginner
- Posts: 28
- Joined: Sun Mar 25, 2018 12:37 am
[SOLVED] Custom Build Deck - One Wire - Writing to EEPROM DS28E05
Last edited by Lombazombie on Tue Oct 30, 2018 6:05 pm, edited 1 time in total.
-
- Beginner
- Posts: 28
- Joined: Sun Mar 25, 2018 12:37 am
Re: Custom Build Deck - One Wire - Writing to EEPROM DS28E05
So just in case anyone tries doing what we are trying to do, here is some info for the future. Please correct me if I am wrong. After talking to some more people and searching a bit I've found this.
However, the one wire is not even found by the crazyflie. I have been able to read info from other decks. I have never done this before and am fairly new to it. Any advice on what you guys think would be a good step forward would be awesome.
Thanks!
- You can force the deck to load. Here is an example of a deck build: How to Build A Deck
- Even though the deck resembles the Z-Ranger, the one wire would need to have data written to it, as that's how you make the decks hot swap-able. However, it is not needed since you can force the deck every time in development. Here is some info on doing that: One Wire Write Steps
However, the one wire is not even found by the crazyflie. I have been able to read info from other decks. I have never done this before and am fairly new to it. Any advice on what you guys think would be a good step forward would be awesome.
Thanks!
Re: Custom Build Deck - One Wire - Writing to EEPROM DS28E05
As you noted you can force the deck as a first approach and it should work fine.
If you add a onewire memory that is not programmed, the Crazyflie firmware will only load deck drivers in debug mode, this was intended as a safety features: if the memory is not written there is not way to check for conflict.
If your one-wire board is well soldered and connected, you should see a warning when starting the Crazyflie that one corrupted OW memory is detected. Then it should be possible to write it using the procedure you followed.
If you add more component later to the deck, you can make your own deck driver that starts the z-ranger driver, this is what we are doing in the flow deck: https://github.com/bitcraze/crazyflie-f ... #L186-L187
If you add a onewire memory that is not programmed, the Crazyflie firmware will only load deck drivers in debug mode, this was intended as a safety features: if the memory is not written there is not way to check for conflict.
If your one-wire board is well soldered and connected, you should see a warning when starting the Crazyflie that one corrupted OW memory is detected. Then it should be possible to write it using the procedure you followed.
If you add more component later to the deck, you can make your own deck driver that starts the z-ranger driver, this is what we are doing in the flow deck: https://github.com/bitcraze/crazyflie-f ... #L186-L187
-
- Beginner
- Posts: 28
- Joined: Sun Mar 25, 2018 12:37 am
Re: Custom Build Deck - One Wire - Writing to EEPROM DS28E05
Hello arnaud,
Thank you so much! Just wanted to update this in case anybody was looking at it after. Turns out the OW that we bought were bad. We bought some new ones (exact same ones) and was able to do the process of programming it without an issue.
Thank you!
Thank you so much! Just wanted to update this in case anybody was looking at it after. Turns out the OW that we bought were bad. We bought some new ones (exact same ones) and was able to do the process of programming it without an issue.
Thank you!