nephiel / sdlocker-tiny Goto Github PK
View Code? Open in Web Editor NEWAttiny85-based device to enable and disable write-protection on any SD card
Attiny85-based device to enable and disable write-protection on any SD card
Actually it is not an issue but a comment to support ATmega.
Tested: ATmega328p & Arduino Nano 3.0
Should also work: ATmega8/48/88/168/328
Or Arduino UNO, Nano, Pro Mini
Revise the file "sdlocker-tiny.cpp" line 121 - 124 & 135
#define MOSI_BIT 3 //Arduino D11
#define MISO_BIT 4 //Arduino D12
#define SCK_BIT 5 //Arduino D13
#define CS_BIT 2 //Arduino D10
#define LEDSW_BIT 1 //Arduino D9
Copy whole code (File: sdlocker-tiny.cpp) to Arduino IDE, revise the lines, select the board, and upload. Cheers.
I forked the repo (to my tz1) and added USI support. The docs are at best confusing, at worst wrong, but I get the high speed.
NOTE MOSI and MISO are REVERSED!!! - I needed to swap the pins.
I'm also not using the interrupts, but doing a series of writes to the register to do the clocking - 1 cycle each. There are other optimizations, but this is the main one.
I've done I2C master using the USI, and always wanted to try to get the SPI working.
Thanks for the port.
Could you give a complete list of parts for this project? Looks really great.
@Nephiel
I would like to know whether you'd consider selling a unit to me? See my comment here: https://hackaday.com/2014/01/18/the-tiniest-sd-card-locker/#comment-5030677
You can contact me by mailing to reuben [dot] register [at] icloud [dot] com
Thanks!
Reuben
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.