-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposed additions to the schematics #14
Comments
Hi, thank you for your work! I'm not completely at ease about publishing exact directions about how to remove the logic level shifter, and using a voltage divider and apparently (as you have found out) stepping up the MOSI from the wheelbase to the 5v arduino input - so, I wouldn't like to add that schematic to the repository. (Since there's a high risk of feeding 5v into your expensive Fanatec wheelbase) The ATMEGA328 datasheet states: digital inputs transition from Low to High happens at 0.6 * Vcc, or 3V. Now, AFAIR the Fanatec wheelbase MOSI outputs at 3.3V. (You would have to check if I actually remember that correctly!) If you still want to step up the (3.3V?) MOSI signal to 5V, you will need a non-inverting level shifter. See the one in the first answer here |
Hi Ishachar. Thanks so much for sharing. I am a total noob when it comes to electronics but I will still try it. Could you tell me which diode would be best as I need to order it? I didn't want to open a new thread for this. |
1N4001. you're welcome :) , |
Hi everyone, and thank you for the amazing work you shared here. I managed to establish SPI communication with my DD1 base and run 24 buttons. I’ll investigate using the encoder capability of SPI protocol. what I did not manage to do is get enough power from the wheel to run the arduino. I have to hook up the arduino’s USB to the computer. when I try to get power from the base only, it turns on for 2 second and then the base’s screen turns black. I tried to get power from pin 4 (+5V) And 9 (USB +5V), both have same effect. did someone manage to get power from wheelbase for the above shown schematics without any issue? Cheers! |
Re: „ when I try to get power from the base only, it turns on for 2 second and then the base’s screen turns black.“ Many thanks for this comment. Had been trying to get this to work at first without usb connection to the Arduino. Had the same issue. With the Nano connected to usb works perfectly with my DD1. Am surprised that the Arduino’s minimal 5v draw is tripping over current. This could be the same issue causing CSL DDs to turn off when the wheel is plugged in. Will attempt to get the code running on a STM32 bluepill at 3v3. Huge thanks to the author for his work! |
You could try adding a capacitor on the 5v line to stabilize the initial current draw. But really you'd want a scope to see that initial current draw yourself. If it's big - there might be something wrong with your Arduino/wiring. I would also experiment with finding the tripping point for the 5v supply on your wheelbase. |
So, I took apart a fanatec wheel today to wire up a logic analyser and see what is actually going on when conecting a wheel to a DD1. As you can see in the pics below, the spi communication starts within about 200ms of connecting the wheel. Could it be that newer bases are expecting that communication to be establiched earlier that older ones did and, therefore, are shutting down when that doesn't happen in time? From what I have been able to establish the normal arduino boot process (using the boot loader) takes approx 2000ms, ten times the expected duration. Also, when using USB power, my arduino works without issue, perhaps because it can establish the SPI cinnection quickly because it has already booted prior to attaching the wheel. Did those who have this working on newer bases flash the firmwire via ISP without a bootloader, allowing the arduino to get SPI up in time? Will tty that on the WE. You'll notice that top 2 traces (3v3 and 5v) go high a bit later than the SPI lines. Those are the shortest pins (marginally) on my wheel, the delay varies directly with the speed I plug in the wheel, therefore, I believe, but am not certain, that's insignificant. BTW current draw definitly isn't causing the shutdowns, both the Fanatec wheel and my arduino nano pull the same 20-30mA. |
Hello I wanted to see if you'd be interested in adding a couple alternate schematic images? I edited yours to show an Arduino Uno in place of the nano and also both using a single voltage divider on the MISO line in place of the level shifter.
If you could give them a quick look to make sure I didn't get anything wrong? Then I can issue a pull request if you'd like to add them to the main repository here?
thanks!
*edit I removed the two schematics showing a single voltage divider on the MISO line because I was unable to get my Arduino to read from the wheel base when hooked up as shown. (CRC Error 0x0)
It is entirely possible that the 3v isn't enough for the Uno to recognize even though it should be. I may attempt to add a transistor (pnp222) to feed the Arduino 5v on the MOSI line?
The text was updated successfully, but these errors were encountered: