Skip to content
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

Fast and Cheap Level shifter 5V -> 3.3V #67

Open
maxicastle opened this issue Feb 21, 2016 · 4 comments
Open

Fast and Cheap Level shifter 5V -> 3.3V #67

maxicastle opened this issue Feb 21, 2016 · 4 comments
Labels
move to wiki content of this conversation should be copied to the wiki

Comments

@maxicastle
Copy link

Hello friends, thanks a lot for the initiative to create this library (really useful), I only want to share a different way to communicate your arduino 5V Pro-mini/UNO/Mega/etc with the 3,3V DWM1000 module.

It's really simple if you need to communicate your module with your 5V system, but you don't have a level shifter (Chip or module) and you can't get it or need a fast solution you can use the next voltage divider on each ARDUINO_OUTPUT_PIN and connect the output of the voltage divider to the DWM1000_INPUT_PINS, and connect the DWM1000_OUTPUT_PINS(3.3V) directly to your arduino board.

voltage divider

is not forced to use these exact values the only condition that you need to satisfy is:

5V_(R2/(R1+R2))=3.3V or R1=0.5151_R2

Example , for the next diagram this is te I/O configuration

adapterboardtestbed

DWM1000 || Arduino
3 (RSTn) Pin 9 Reset (OUT)
13 (SPICSn) Pin 10 SPI chip select (OUT)
14 (SPIMOSI) Pin 11 MOSI (OUT)
15 (SPIMISO) Pin 12 MISO (IN)
16 (SPICLK) Pin 12 SPI clock (OUT)
17 (GPIO8) Pin 2 interrupt asserted line (IN)

img_7506
img_7494
Uploading IMG_7488.JPG…
img_7482

Works really well !!!

@MikeS159
Copy link
Contributor

MikeS159 commented Mar 2, 2016

Potential dividers are a simple way to make a single-direction level shifter. Can I suggest that hardware advice be kept to the wiki rather than the issues page?
I created a page here where everyone can list hardware that they have used successfully.

@pascalbros
Copy link
Contributor

I think your configuration is wrong, because in all the pictures there's a wire (pin 12 on arduino) that is attached directly and the voltage is not shifted.

Maybe I'm wrong eh. I tried your configuration and i'm not able to connect and read the DW.

@R2D2RU
Copy link

R2D2RU commented Aug 10, 2016

16 (SPICLK) Pin D13 SPI clock (OUT)

@Rotzbua Rotzbua added the move to wiki content of this conversation should be copied to the wiki label Apr 24, 2017
@Rotzbua
Copy link
Collaborator

Rotzbua commented Apr 24, 2017

@maxicastle Hi, please move your idea to the wiki. Thanks for your help:) !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
move to wiki content of this conversation should be copied to the wiki
Projects
None yet
Development

No branches or pull requests

5 participants