Close

5v, 3v3 --> Bus Pirate of course

A project log for SentriFarm

Solving a key farming problem: is it safe to harvest / spray / sow today? (+experiments with 'big' data in agriculture)

pastcomputepastcompute 04/26/2015 at 09:220 Comments

So of course the Digispark needs 5V as I rediscovered when I went to wire it up. I had always run it on USB power until now, and unlike some of my other gadgets it doesn't have a 3v3 converter. Well, it is small. I don't have any spare level converter boards and don't want to wait.

Then I remembered my Bus Pirate. Problem solved...

(Update)

So the bus pirate is working well. (Apart from only having one...)

picocom -b 115200 /dev/ttyUSB0

im5 1 1 2 1 2 2
Wva%:6A
[0x42 r:1][0x01 r:1][0x02 r:1][0x03 r:1][0x06 r:1][0x07 r:1]
This produces SPI reads that match the default values in the datasheet. Seeing as this is the first time I ever used SPI , this is a win :-)
/CS ENABLED
WRITE: 0x42 
READ: 0x12 
/CS DISABLED
/CS ENABLED
WRITE: 0x01 
READ: 0x09 
/CS DISABLED
/CS ENABLED
WRITE: 0x02 
READ: 0x1A 
/CS DISABLED
/CS ENABLED
WRITE: 0x03 
READ: 0x0B 
/CS DISABLED
/CS ENABLED
WRITE: 0x06 
READ: 0x6C 
/CS DISABLED
/CS ENABLED
WRITE: 0x07 
READ: 0x80 
/CS DISABLED
This could get quite involved, so I might set up a separate place to write about it.

Discussions