Giter VIP home page Giter VIP logo

Comments (52)

CRImier avatar CRImier commented on September 26, 2024 1

dscn6215
Assembled boards, will test the next week and see.

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024 1

Nice case! However, you don't have the opening for a button. A coin cell will work until a certain point (2.7V I believe), but it should be OK - there are two pins to add one, thankfully. Didn't think of a coin cell, now that you've said it, I realise it's a very clever and really simple solution!

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024 1

That's very cool, but I don't think it will easily be 3D-printable. I'm going to have instructions on my Tindie page:

###How does it work?
- Plug in the USB (used for power)
- Plug in the SD card - the device will power up
- LED lights on boot for a couple of seconds, then shows the card's lock status (not lit = unlocked, lit = locked)
- Press the button to toggle the card's lock state
- By default, the TMP lock bit is toggled - it allows to unlock the card.
- To toggle the PERM bit (and make the card permanently read-only), hold the button while plugging the SD card in - it will flash the SOS pattern on the LED (and won't proceed until you release the button). This is done so you don't toggle the PERM bit by accident.

Plus, I'm going to make a video on using it. Just need to make some photos for the Tindie page, then 1 or 2 days and it will be orderable by @k-tronik =) As for @RHelmuth's board, will email you now.

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024 1

Available for sale on Tindie now! Finally got around to fixing and testing the 7 PCBs that I have, as well as making the cases.

sd locker picture

from sdlocker-tiny.

Nephiel avatar Nephiel commented on September 26, 2024

I'm afraid right now I do not have the time or resources to do it. Sorry!

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

@Nephiel I can try making some PCBs and selling these myself on Tindie, would you mind? Will add a disclaimer like "software comes as-is, please do not bug the author" disclaimer, if desired. Got most of the components already, just need to draw&order PCBs and get some SD card slots.

from sdlocker-tiny.

Nephiel avatar Nephiel commented on September 26, 2024

@CRImier Sure, feel free to do so. You can fork this repo and link to your fork instead.

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

Indeed, sounds like a better idea. Thank you!

from sdlocker-tiny.

RHelmuth avatar RHelmuth commented on September 26, 2024

Would it take a lot of effort to add the option to permanently lock (e.g. by holding the button for 3-5 seconds)? I think having both options would make it so much more attractive and would broaden your target customer base.

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

I will look into the code - it might very well be a simple change.

from sdlocker-tiny.

RHelmuth avatar RHelmuth commented on September 26, 2024

@CRImier, the other thing you should be thinking about is supporting SDXC cards. Perhaps they already work, but I did notice they weren't listed where the types were being defined (lines 105-107). With SDXC cards becoming more common-place, it would be good to support them.

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

I don't have any SDXC cards so I won't be able to test it, and I think it's not a worthwhile investment for now (given that testing will result in broken cards). Feel free to open an issue in my repo, though, so that whoever's interested could chime in and see if something can be done.

from sdlocker-tiny.

RHelmuth avatar RHelmuth commented on September 26, 2024

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

Designed and ordered PCBs, will arrive to me in a week, then I'll assemble one, flash it, test it and let you know =)

from sdlocker-tiny.

RHelmuth avatar RHelmuth commented on September 26, 2024

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

from sdlocker-tiny.

RHelmuth avatar RHelmuth commented on September 26, 2024

from sdlocker-tiny.

RHelmuth avatar RHelmuth commented on September 26, 2024

from sdlocker-tiny.

RHelmuth avatar RHelmuth commented on September 26, 2024

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

Lost the device for a while (and didn't have any more ATTiny sockets for testing so couldn't assemble any more), now found it, flashed it, found two sacrificial SD cards and tested it. The PCB's going to need a few jumper wires, but nothing major. How many do you need? Do you need them set to TMP or to PERM? Both seem to work - TMP locking works on and off, PERM works on and doesn't turn off (which is kind of the point =D ). I can assemble one or two more additionally to what I have. Price is $10, shipping is $5 to USA, $4 to EU (regardless of QTY), can send out Monday morning.

from sdlocker-tiny.

RHelmuth avatar RHelmuth commented on September 26, 2024

@CRImier, is it possible to do both TMP and PERM with the same device (e.g. holding the button for ≥5 seconds would flip the PERM bit)?
Please email me directly (reubedu [at] gmail [dot] com) so we can exchange payment and shipping information.
Thanks!

from sdlocker-tiny.

k-tronik avatar k-tronik commented on September 26, 2024

Please may I put my name here in the hope when this project is ready, to be contacted...also would be interested in this working with SDXC, happy to buy and test....re-flash and re-test....with my SDXC cards...I can flash Attiny stuff.... ;)

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

@RHelmuth I've implemented the PERM flashing - you need to hold the button during the card insertion, the LED will flash a pattern and switch into PERM flashing mode. Code's posted over at my repo. Let me know that's OK with you and we can talk about payment/shipping. Will try implementing the "hold to PERM thing" this weekend, sounds more convenient

@k-tronik I don't have any SDXC cards and don't like to write the code blindly without testing, however, if you're OK with writing the code yourself, I'd be happy to sell you the hardware (with a testing-friendly socket pictured above).

from sdlocker-tiny.

k-tronik avatar k-tronik commented on September 26, 2024

@CRImier opps...I needed 'U3 SDHC'..my bad... not SDXC, its just bigger size...not faster... so when ready I will order 2 units please.... K

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

Okay, good!There's no need to flash ATTinys then, I'll just make two more units without testing-friendly sockets, pre-flashed.

from sdlocker-tiny.

k-tronik avatar k-tronik commented on September 26, 2024

@CRImier Ok thx again...I will make up the 3D printed cases....and post design to thingiverse once you have more boards made up....thx again for this!

from sdlocker-tiny.

RHelmuth avatar RHelmuth commented on September 26, 2024

@CRImier the "hold during insertion" is an acceptable implementation for me, thanks! It may be less 'intuitive', but on the other hand, one is less likely to accidentally do a PERM lock so it may even be preferable.

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

@k-tronik will throw a .STEP model in your direction sometime soon, then.

@RHelmuth preventing accidents was the intention, indeed - that's the version I personally will be using. Question, though - what's your workflow? Will you be setting cards to PERM en masse, or just occasionally? If you have a batch of cards you need to flash, the "hold to PERM" workflow might just work better.

from sdlocker-tiny.

RHelmuth avatar RHelmuth commented on September 26, 2024

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

Ah okay, then the current code will be very suitable =)

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

@k-tronik here's a colored .STEP model of the board with all the components:

sd_locker.zip

image

from sdlocker-tiny.

k-tronik avatar k-tronik commented on September 26, 2024

@CRImier WOW, nice...please can you export that file as a STL file...not to print...just to drop in to my workflow of tinkercad.... thx again K

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

@k-tronik here you go

sd_locker.stl.zip

image

from sdlocker-tiny.

k-tronik avatar k-tronik commented on September 26, 2024

@CRImier thx again....so USB for input power...any idea of power drain in use, maybe do a battery case, version a well....

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

@k-tronik The power consumption seems to be negligible - <10mA at 5V or so. Should be possible to make a separate battery-powered version, but I'm not sure it's worth the effort - I'd sell it for about $20-$25, and I'm not sure people would be interested in that. I can mod the existing PCBs manually for you - I'm now sketching the Tindie page, will consider adding a +$10 option to "make it battery-powered", with a charger added and a slightly different regulator (more efficient). You'll need to bring your own battery - something like 3.7V/200-400mAh will work, shouldn't set you back more than a couple of dollars.

from sdlocker-tiny.

k-tronik avatar k-tronik commented on September 26, 2024

@CRImier so I will just add a coin cell at the bottom...if needed...did a quick case mock up...just need to get graphic for top and add any logos you need...
3d design sd_loker

from sdlocker-tiny.

k-tronik avatar k-tronik commented on September 26, 2024

@CRImier will also need to sort out the button for the cased version....one idea is add 2x thru hole pads behind switch for panel mount switch on case...and do same for LED....you could then sell cased version for more...

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

I can't do anything about the button now, and probably not until the next year. Can't you add a small hinge on the top cover for pressing the button? I'm not sure I will be doing too many revisions of this (since each revision is a time&money investment that might not pay off fully), and you can already solder wires to the switch and LED pins if needed. "Sell for more" - I sure can put a larger price on it, but I'm not sure people will buy it (esp. given the difference's not that big).

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

If you screenshot your design file for the top part of the case (from the inside, specifically), I can show how the hinge would look like.

from sdlocker-tiny.

k-tronik avatar k-tronik commented on September 26, 2024

I would not open the case...to push a button...I would just push on your button via a rod and printed hole...or add another case mounted switch for my unit...what ever the case...you correct...get you $$ back for this version before you move on....I hear ya!!! we will just work with what we have....and make a few cases for it....if you like send me some logos or image to go on the box...happy to help out....K

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

Can add my GitHub avatar and "CRImier" somewhere =) Here's an SVG (vector) image: crimier_avatar.zip Don't forget to refer to yourself, too - the case looks great!

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

also, not "open the case" - you can add a small hinge like this:

image

from sdlocker-tiny.

k-tronik avatar k-tronik commented on September 26, 2024

OK, I get ya now...I will do that....:) all final tweeking will be done with PCBs in hand.... :)

from sdlocker-tiny.

k-tronik avatar k-tronik commented on September 26, 2024

sd_lockerwip

looking better.....logos on the bottom maybe....K

from sdlocker-tiny.

k-tronik avatar k-tronik commented on September 26, 2024

Nice case! However, you don't have the opening for a button. A coin cell will work until a certain point (2.7V I believe), but it should be OK - there are two pins to add one, thankfully. Didn't think of a coin cell, now that you've said it, I realise it's a very clever and really simple solution!

lets set B.O.D @ 2.7v for now on Attiny85.... assuming no issues to run on 2.7v will add ON/ OFF switch and a battery of some sort...given the 10mA peak....coin cell might be a but under done..but happy to play around...

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

SD cards run down to 2.7V (like the CR2032 and similar batteries), even though 3.3V is the usual operational voltage - I can check if it actually functions down to 2.6V or so tomorrow or the day after. As for BOD, will check, I think it's already set at 2.7V in my setup. ON/OFF switch shouldn't be necessary, as the SD card insertion switch controls the power (the device's not powered until the card is inserted). I will see, might be able to make a ready-to-go battery-powered setup for you.

from sdlocker-tiny.

RHelmuth avatar RHelmuth commented on September 26, 2024

@k-tronik and @CRImier how about having the basic instructions printed on the case (either on the case bottom if space allows, or even on the inside of the lid)? I envision something like this:
image

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

@k-tronik BTW, are your case files available? We're now arranging the PCB shipment with RHelmuth, and I was wondering - if you could share the Tinkercad project files, I would be able to printing two of those to add to the shipment, adjusting the source if necessary. My email I use with Tinkercad is [email protected] .

from sdlocker-tiny.

k-tronik avatar k-tronik commented on September 26, 2024

@CRImier its just mock up...case will close on my printer...but maybe not yours...its not finished...and you would have to stuff around to make it so...I can get stuff world wide for a few $$ thru the post...once I get boards, I will get it done....and send part from here....or you can take what I have...and stuff around...your call....but it won't go on thingiverse till is finished and tested,......K

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

@k-tronik if you can get the source files to me, I can tweak them, no worries - then share my results, of course.

from sdlocker-tiny.

CRImier avatar CRImier commented on September 26, 2024

@k-tronik let me know if you have time to share the files. I'll be looking at creating my own quick&dirty prototype, in the meantime =)

from sdlocker-tiny.

k-tronik avatar k-tronik commented on September 26, 2024

Hey sorry about delay....tinkercad design is open for editing via this link, I think a small trapped button pusher is what I will do...rough CAD of this has just been added....

https://www.tinkercad.com/things/aCdffkB6ycg-sizzling-duup-krunk/edit?sharecode=bjAvZsCAanRYnLWeQIFOAiFzO0hGHiVB3LgwLgJzyv0=

from sdlocker-tiny.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.