Then the turntable is moved with function 'tableout()', again the motor runs until the screw hits the micro switch. The motor runs until the screw hits the micro switch. The tray is moved out first with, function 'trayout()'. The arduino monitors the output from the CT and if the count exceeds 2500, it recognises that the kettle has been switched on and sets the motors in motion ! The values in the sketch should be fine for any appliance of 2KW or more. With no current through the CT, the numbers displayed will be in the low 10's or 100's, whereas, when current flows, it will be in the 1000's ! The sensing routine and the motor drive routines.Īt the bottom of the sketch is a sketch which can be used to determine the values output by the arduino. See the software step for the connections. If you intend to use more than 12v, there is a jumper with disconnects the regulator from the supply. WARNING : This board can handle up to 35v input BUT the 5v regulator will ony cope with about 12v ! On board is a very useful 5v regulator which I use to power the arduino! If you want to use PWM to control the speed of the motors, you must remove the jumpers and connect the PWM out to the connector instead. The motors turn at full speed because of the jumper at each end of the connector. With 0v on IN1 and 5v on IN2 the motor will turn in the oposite direction. With IN1 at 5v and IN2 at 0v the motor will turn on way & With both IN1 & IN2 at 0v the motor will not turn IN1 & IN2 control the direction of motor 1 and IN3 & IN4 control the direction of motor 2. There are many, many tutorials on the web of how to use this board, but very basically -Ĭonnect 12v and Ground and the motors to OUT 1&2 and OUT3 & 4 Pretty much any geared motors should do with the appropriate RPM's.ĭriving these was made really easyusing the L298 H bridge motor driver - Ebay ! I'll explain this in the Software step.Ħ0-500RPM Reversible High Torque Turbo Worm Geared Motor DC12V Reduction UK - I used a 300RPM from EbayĭC 12V high torque turbine worm gear motor, with encoder strong self-locking - Ebay 12RPM (I removed the encoder). The sensor can be very acurate as can be seen in my ISwitchTR project, but in this project, I'm only interested if there is some current flowing. I used a DL-CT08CL5-20A/10mA 2000/1 0~120A Micro Current Transformer from Ebay but any equivalent should do!įor more information re Voltage & Current sensing, check out these links, they are very informative!īasically, you feed the live wire (although I think it will work with the neutral wire too) of the mains lead through the CT and connect the CT via the small circuit above to the arduino.Ī very clever library does all of the work. The mains sensing is done using a Current Transformer, these come in all shapes and sizes and different ratings, The arduino senses this and after 10 seconds returns the turntable and tray to the 'home' positions. The kettle automatically turns itself off. When the kettle is switched on, after 3 seconds, the tray moves out & when fully extended (about 7cm), the turntable rotates, Micro switches indicate the 'home' & 'away' positions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |