background preloader

Using Relays with Arduino – Turning on the Lights

Using Relays with Arduino – Turning on the Lights
Warning!!! This project deals with AC electricity which is dangerous if you don’t know how to treat it safely. You must treat electricity with caution. There are many books and websites about electrical safety procedures and if you’re not sure how to be safe you should read that information. The most basic advice I can give is always assume any exposed wires are live and touching them will hurt a lot at best and kill at worst. Microcontrollers are good at controlling small devices, but frequently we DIY-ers want to use them to control things that aren’t so micro. The first thing you need is a cheap extension core that you are willing to cut in half. I spliced the relay into the black wire on my power cord. The last step and the one that makes this project useful is getting the microcontroller to control this relay. In this circuit the transistor acts as a switch and it allows you to turn on the relay. Credits

Relay Using GPIO on Raspberry Pi Soil Moisture Sensor Probes VH400 Soil Moisture Sensor Probes Soil Moisture Sensor Probe Applications Irrigation and sprinkler systems. Moisture monitoring of bulk foods. Rain and weather monitoring. Soil Moisture Sensor Probe Features Extreme low cost with volume pricing. Other Vegetronix Products of Interest Soil Moisture Sensor Probe Pricing and Ordering Info Contact us for pricing information. Soil Moisture Sensor Relay Boards The quickest way to evaluate if the VH400 series is right for you is to also order some of our sensor relay boards. Soil Moisture Sensor Probe Specifications Soil Moisture Sensor Probe Wiring Table VH400 Soil Moisture Sensor Probe Drawing VH400 Soil Moisture sensor Drawing Soil Moisture Sensor Probe Technical Literature See our Soil Moisture Sensor Probe Application Notes for reference designs and information on how to use the soil moisture probe in larger systems. How to Get Started with the Soil Moisture Sensor Probe Soil Moisture Sensor Instructional & Promotional Videos

PowerSwitch Tail II A power cord that switches 120vac power directly from a microcontroller I/O pin (3-12vdc, 3-30ma) "The easiest way to control an AC device with an Arduino, Raspberry Pi, Beaglebone or any other DIY controller." *** Either unit can be field rewired for normally open (NO) or normally closed (NC) operation. Soldering required. No exposed 120vac voltages and no dangerous 120vac wiring required.Plugs into standard 120vac 3-prong household outlets, power strips, and extension cords.Eliminates the exposure of hazardous voltages in DIY projects, classrooms, and on development workbenches.No special 120vac wiring when deploying new products and custom solutions. 5300vrms isolation from the 120vac circuit.

hardware - Can I switch mains devices on/off? There's an American product called a PowerSwitch Tail which is basically an optically isolated relay in a box. They make a complete unit for 120V, but only kits for 240V supplies. The kit assembly looks pretty straightforward (even for a beginner). While it is more expensive ($18) than a cobbled together circuit with a relay, it's a lot more convenient and (most likely) a lot safer too. Electric Imp promises a simpler cheaper path to the Internet of Things Los Altos-based start-up Electric Imp is looking to make putting the "things" into the Internet of Things both cheaper and simpler with Imp - a Wi-Fi equipped card designed to connect appliances to the internet so that users can remotely monitor and control them. A similar concept to the Twine system we saw back in 2011, Imp is geared towards simple installation and works with a range of appliances. The biggest novelty here is that the card combines the power of Wi-Fi with cloud computing provided by Electric Imp, so manufacturers don’t need to create specific management software. Users can link up with other users and services online as well as monitoring the device connected with the Imp through a web-browser or smartphone. Behind the high-tech appeal of the innovation is a rather domestic story, which is just as well since it’s in the home that it will most likely be put to work. Electric Imp has announced that it will start shipping a developer preview bundle in late June.

ElectronicBricks-1 Get your brand new Wikispaces Classroom now and do "back to school" in style. guest Join | Help | Sign In arduino-info Home guest| Join | Help | Sign In Turn off "Getting Started" Loading... Raspberry Pi – Driving a Relay using GPIO | SusaNET There’s something exciting about crossing the boundary between the abstract world of software and the physical ‘real world’, and a relay driven from a GPIO pin seemed like a good example of this. Although a simple project, I still learned some new things about the Raspberry Pi while doing it. There are only four components required, and the cost for these is around 70p, so it would be a good candidate for a classroom exercise. Even a cheap relay like the Omron G5LA-1 5DC can switch loads of 10A at 240V. A word of caution: don’t tinker with mains voltages unless you’re really (really) sure about what you’re doing. The Circuit There are four components to this circuit. A relay will often have 3 significant voltage/current ratings specified; coil, AC load, and DC load. The AC and DC load ratings relate to the switch-contacts, and state the maximum load current (e.g. for your lamp, motor, etc.) that can be carried at the given AC and DC voltages. The breadboard photo shows it wired up.