h4nd Posted December 6, 2024 Posted December 6, 2024 Mr SuperFast has an excellent method for reverse engineering complex software protocols, at 6:10 https://youtu.be/Bea4FS-zDzc?t=370 Bigger hammer! https://www.rocelec.com/part/01t4w00000PPHFkAAP-KMA215118 Quote
ThePog Posted December 6, 2024 Posted December 6, 2024 @h4nd I have a couple of questions. What is the 'go' signal? Does the arduino need to be powered all the time or for a set amount of time to boot? The actuators have limit switches that cut the motor up or down, what happens in this condition? Does everything reset for the trip downwards with reversed polarity on the motors? At the moment this is just done with a dt switch taking all load. Quote
Willdat? Posted December 6, 2024 Posted December 6, 2024 7 minutes ago, ThePog said: @h4nd I have a couple of questions. What is the 'go' signal? Does the arduino need to be powered all the time or for a set amount of time to boot? The actuators have limit switches that cut the motor up or down, what happens in this condition? Does everything reset for the trip downwards with reversed polarity on the motors? At the moment this is just done with a dp switch taking all load. The L298Ns are an H bridge controller so they switch the polarity for you. No idea about any of the other questions as I've not used them! Quote
h4nd Posted December 6, 2024 Posted December 6, 2024 2 hours ago, ThePog said: @h4nd I have a couple of questions. What is the 'go' signal? Does the arduino need to be powered all the time or for a set amount of time to boot? The actuators have limit switches that cut the motor up or down, what happens in this condition? Does everything reset for the trip downwards with reversed polarity on the motors? At the moment this is just done with a dt switch taking all load. I wondered when you'd spot that. Either I'm very dumb, or lazy, I have a sneaky plan (or 3). Actually there's a few options, depending on what suits you. fit some external up/down buttons to spare inputs (except A4, A5) safe - normal, boring. Don't do that to me! have a laptop to send a serial string saying - up / down now! do the same with a serial interface from you phone usb port. boooring, but smaller and more portable, OR! Add a bluetooth serial module to the rig, so same as above, but wireless CAN bus? OG TV remote with 2 tuning forks and a microphone, for the whistle the right tone at it LoLs re-purpose an old TV remote, bang an IR receiver on the arduino ($2) Add a single button where you have to tap 'Fuck Trum'p in morse for it to work - y'know, a safety cognition test to prevent kids and the mentally feeble from operating it and injuring themselves or others run the motors up to see if they move. If not, you've topped out at the top, so start going down instead I'd have put current feedback on those motor drivers, but the end-stop on the actuators will be fiiine, we'll just look for 'the motor stopped turning' better yet, run the motors down unless they've stopped - if so, run them up: That way from rest you can make it go up to 1/2 way, and just power it off - then it'll come down next time. Full positional control all from just the main power switch Quote Does the arduino need to be powered all the time or for a set amount of time to boot? Just put it on the power control. Wakes up in about a second. Slow for a uController, but it's got to do some bootloader fucking around. Quote The actuators have limit switches that cut the motor up or down, what happens in this condition? Job done, the Arduino puts itself to sleep (goes to about 10mA); then you can turn the drive system power off. The limit switches are selected through diodes, so when you run them the other way - off they go again. Quote Does everything reset for the trip downwards with reversed polarity on the motors? At the moment this is just done with a dt switch taking all load. Nah, per last option above, the Arduino just goes, oh: drive isn't making the spinny, off we go the other way. Simples Quote
ThePog Posted December 6, 2024 Posted December 6, 2024 Cheers @h4nd All of these methods are excellent, however a single go button would probably be the best. I was excited to bring you some scope creep but it seems you have addressed that, ruining my fun. I was going to ask if the bed could be stopped at any position by podging the button, this looks like it is solved. The button probably needs to be an estop as well, just in case there is need to stop it quickly... Otherwise that all looks spiffy. Edit; pull up resistors indication on your diagram? Quote
ThePog Posted December 6, 2024 Posted December 6, 2024 Actually the button could be for the plebs, what about a second input where I whistle the star trek comunicator noise to make it go? Quote
h4nd Posted December 7, 2024 Posted December 7, 2024 51 minutes ago, ThePog said: Edit; pull up resistors indication on your diagram? got it covered in software. LoL 1 Quote
h4nd Posted December 22, 2024 Posted December 22, 2024 Was gonna build a noise thingy for kiddo. cheap simple noise PCB! ACE! 8 simple switch inputs, fuck yeah no software! should only take an hour in this mode each button plays noise 1-8 - sweet, but need more noises! in that mode it's a binary input for 255 noises. Great. wire up - test. but it starts at 0-127 twos-complement???!?! yeah, all inverted, starts at 1 not 0. Whut?? Oh, so I'd need to space all the noise files every 2nd number if I use a button? only 1/2 the entries are usable?? huh?? oh, oh dear only 126 available then. hang on, you're not playing the intended file number! yeah, that numbering scheme? It actually ignores the number on the files, and indexes according to whatever order you put the files on the storage. whuuut? I'm gonna have to do a software, aren't I >:-( 1 Quote
h4nd Posted December 23, 2024 Posted December 23, 2024 Driving a relay: often needs a 'catch diode' stop the back-emf putting 100V+ up the bum of your sensor/transistor/Arduino: Yep, Kettering ignition uses exactly this effect to get ~100V on the primary of your ignition coil, which gets a 1:100 boost across the secondary to get your 10KV spark ignition voltage. Also, it is reprehensible to make a gadget that does this for a BDSM party. And let busty goth chicks near it. Quote
h4nd Posted December 24, 2024 Posted December 24, 2024 On 22/12/2024 at 15:27, h4nd said: whuuut? I'm gonna have to do a software, aren't I >:-( The software Quote outputVal = ~(inputVal + 1); writeOutput(outputVal); the hardware for the software: 2 Quote
h4nd Posted December 27, 2024 Posted December 27, 2024 Riiight, so the new firmware in the Ultrahub takes a 10-30s holiday every 10min? - 30min? Am I doomed to re-engineer everything in the house that I touch? https://github.com/hack-technicolor/hack-technicolor/issues/68 (I may prob just put the new router from my fibre install for a quick trial - I mean, never mind that it'll take me 1/2 a day to reconnect all my shitty china IoT devices...) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.