Arduino

From: koswix26 Aug 2015 18:46
To: ANT_THOMAS 422 of 542
Worst case scenario you have a relatively small, relatively high torque motor. That'll definitely find itself another use if it's not suitable for the door thing.
From: ANT_THOMAS30 Aug 2015 20:04
To: ALL423 of 542
Discovered you can make a H Bridge using two relays. I happen to have a 2xRelay module which is now working as a H Bridge. Really really simple to use. If the relays are the same (high/low) the motor would be off. Set one relay high to turn the motor, swap which is high to change direction.

Eg
L/L & H/H - Off
L/H - Forward
H/L - Backwards
From: ANT_THOMAS31 Aug 2015 14:29
To: ALL424 of 542
Super dull video

Arduino, 433 MHz receiver, relay module and hall effect sensor.

The idea is to have the motor running for x seconds, but if the hall effect sensor is triggered it stops. A bit of a fail safe to stop the motor in case it is already fully open.

EDITED: 31 Aug 2015 14:48 by ANT_THOMAS
From: ANT_THOMAS 2 Sep 2015 18:23
To: ALL425 of 542
Erm, I shouldn't have bought a rear wiper motor. Back to ebay (or hack this apart).



From: ANT_THOMAS 5 Sep 2015 12:26
To: ALL426 of 542
That's better. Ford Focus front wiper motor.

It's got quite a kick to it.

From: Dan (HERMAND) 5 Sep 2015 12:55
To: ANT_THOMAS 427 of 542
Your vid is private :(
From: ANT_THOMAS 5 Sep 2015 12:58
To: Dan (HERMAND) 428 of 542
Should work now.
From: Dan (HERMAND) 5 Sep 2015 13:00
To: ANT_THOMAS 429 of 542
Haha - they've got some real torque haven't they!
From: ANT_THOMAS 5 Sep 2015 18:29
To: ALL430 of 542
Bloody hell, it actually works.

Need to add the magnets/hall sensors - edit: added one for opening, works well.
Change the open/shut duration,
Support the upright better,
Possibly switch the side of the motor because it is slower in one direction compared to the other. I'd rather the closing direction be slower and more controlled.
Add some flyback diodes.

EDITED: 5 Sep 2015 20:23 by ANT_THOMAS
From: ANT_THOMAS14 Sep 2015 21:50
To: ALL431 of 542
Used the an Arduino app on Android for the first time the other day "ArduinoDroid". Not the best app but still really useful. Saves disconnecting everything or bringing a laptop into the attic to tweak the sketch.
From: ANT_THOMAS14 Sep 2015 22:46
To: ALL432 of 542
Current progress. Not finished, still waiting for magnets to arrive so I can finish off and paint, but working nicely.

From: koswix14 Sep 2015 23:29
To: ANT_THOMAS 433 of 542
That's very cool, not sure about the big cutouts that are still visible in the hatch though. Take it you couldn't do it any other way?
From: ANT_THOMAS14 Sep 2015 23:35
To: koswix 434 of 542
Yeah, that's the worst bit. I'm planning some sort of flap to cover them. Probably on a hinge with a magnet. They'll definitely be covered somehow. Got loads of MDF left to play with.

It's because of the way the ladders are mounted along with the door opening into the attic. If it opened downwards that would cover everything, but it's a massive door that I wanted opening upwards. The size and shape of the holes are due the opening angle.
EDITED: 14 Sep 2015 23:36 by ANT_THOMAS
From: Chris (CHRISSS)25 Nov 2015 01:03
To: ALL435 of 542
First time I've played with this for ages. Forgotten how to connect up my USBASP to program the board.

My temp sensor has stopped working a while ago and I hadn't bothered getting it going again. Tonight I've added a diagnostic mode to it. Got a button on it which, if pressed when turning it on, sets the sensor to diagnostic mode. Then some LEDs flash to let me know if it's reading a correct temperature and if the data is being sent.

Before I had nothing to let me know it was even switching on.

Want to make a proper soldered board at some point. Got enough bits to make a few of them at least.
From: Chris (CHRISSS)25 Nov 2015 16:20
To: ALL436 of 542
Grr. It stopped working again. Worked last night for only an hour, reset it this morning and it's stored after an hour again.
From: koswix25 Nov 2015 16:31
To: Chris (CHRISSS) 437 of 542
Did you remove the line of code that tells it not to stop after an hour?
 
From: Chris (CHRISSS)25 Nov 2015 17:09
To: koswix 438 of 542
Haha. I'll comment that line out later and try again :D
From: Chris (CHRISSS)26 Nov 2015 10:29
To: ALL439 of 542
Loose connection I'm thinking. I had it running for about 5 hours last night, the lights had stopped flashing when I got back from the comedy club. Have it a tap and it came back on.

The new Pi Zero looks interesting.
From: ANT_THOMAS26 Nov 2015 10:56
To: Chris (CHRISSS) 440 of 542
Looks like I'll be buying some of those!
From: Chris (CHRISSS)26 Nov 2015 11:51
To: ANT_THOMAS 441 of 542
I'm sure I'll get some too, no idea what for yet.