Posts | Comments

Planet Arduino

Archive for the ‘mosfet’ Category

The basic 16×2 LCD is an extremely popular component that we’ve seen used in more projects than we could possibly count. Part of that is because modern microcontrollers make it so easy to work with; if you’ve got an I2C variant of the display, it only takes four wires to drive it. That puts printing a line of text on one of these LCDs a step or two above blinking an LED on a digital pin on the hierarchy of beginner’s electronics projects.

What’s that? Even four wires is too many? In that case, you might be interested in this hack from [Vinod] which shows how you can drive the classic 16×2 with data and power on the same pair of wires. You’ll still need a microcontroller “backpack” for the LCD to interpret the modulated voltage, but if you’ve got an application for a simple remote display, this is definitely worth checking out.

The basic idea is to “blink” the 5 V line so quick that a capacitor on the LCD side can float the electronics over the dips in voltage. As long as one of the pins of the microcontroller is connected to the 5 V line before the capacitor, it will be able to pick up when the line goes low. With a high enough data rate and a large enough capacitor as a buffer, you’re well on the way to encoding your data to be displayed.

For the transmitting side, [Vinod] is using a Python script on his computer that’s sending out the text for the LCD over a standard USB to UART converter. That’s fed into a small circuit put together on a scrap of perfboard that triggers a MOSFET off of the UART TX line.

We actually covered the theory behind this technique years ago, but it’s always interesting to see somebody put together a real-world example. There might not be too many practical uses for this trick in the era of dirt-cheap microcontrollers bristling with I/O, but it might make a fun gag at your hackerspace.

Beyond pride, the biggest issue keeping adults off small motorized scooters is the fact that their tiny motors usually don’t have the power to move anything heavier than your average eighth grader. That didn’t stop [The_Didlyest] from snapping up this $7 thrift store find, but it did mean the hot pink scooter would need to be beefed up if it had any hope of moving 170 lbs of hacker.

Logically, the first step was fitting a more capable motor. [The_Didlyest] used an electric wheelchair motor which had a similar enough diameter that mounting it was fairly straightforward. The original sprocket and chain are still used, as are the mounting holes in the frame (though they had to be tapped to a larger size). That said, the new motor is considerably longer than its predecessor so some frame metal had to be cut away. This left the scooter without a kickstand and with a few inches of motor hanging out of its left side, but it’s all in the name of progress.

Naturally the upgraded motor needed similarly upgraded batteries to power it, so [The_Didlyest] put together a custom pack using eighteen 18650 cells spot welded together for a total output of 25V. Coupled with a 60A battery management system (BMS), the final 6S 3P configured pack is a very professional little unit, though the liberal application of duct tape keeps it from getting too full of itself.

Unfortunately the original motor controller consisted of nothing but relays, and didn’t allow adjusting speed. So that needed to go as well. In its place is a homebrew speed controller made with three parallel MOSFETs and an Arduino to read the analog value from the throttle and convert that into a PWM signal.

[The_Didlyest] says the rear tire is now in need of an upgrade to transmit all this new power to the road, and some gearing might be in order, but otherwise the scooter rebuild was a complete success. Capable of mastering hills and with a top speed of about 10 MPH, the performance is certainly better than the stock hardware.

Of course this is far from the first time we’ve seen somebody put a little extra pepper on a scooter. Some of them even end up being street-legal rides.

A classic one-man band generally features a stringed instrument or two, a harmonica in a hands-free holder, and some kind of percussion, usually a bass drum worn like a backpack and maybe some cymbals between the knees. The musician might also knock or tap the sound-boards of stringed instruments percussively with their strumming hand, which is something classical and flamenco guitarists can pull off with surprising range.

The musician usually has to manipulate each instrument manually. When it comes to percussion, [JimRD] has another idea: keep the beat by pounding the soundboard with a solenoid. He built a simple Arduino-driven MOSFET circuit to deliver knocks of variable BPM to the sound-board of a ukulele. A 10kΩ pot controls the meter and beat frequency, and the sound is picked up by a mic on the bridge. So far, it does 3/4 and 4/4 time, but [JimRD] has made the code freely available for expansion. Somebody make it do 5/4, because we’d love to hear [JimRD]  play “Take Five“.

He didn’t do this to his good uke, mind you—it’s an old beater that he didn’t mind drilling and gluing. We were a bit skeptical at first, but the resonance sweetens the electromechanical knock of the solenoid slug. That, and [JimRD] has some pretty good chops. Ax your way past the break to give it a listen.

Got a cheap ukulele but don’t know how to play it? If you make flames shoot out from the headstock, that won’t matter as much. No ukes? Just print one.

Filed under: Arduino Hacks, Musical Hacks

The Raspberry Pi and other similar Linux-based single board computers simplify many projects. However, one issue with Linux is that it doesn’t like being turned off abruptly. Things have gotten better, and you can certainly configure things to minimize the risk, but–in general–shutting a Linux system down while it is running will eventually lead to file system corruption.

If your project has an interface, you can always provide a shutdown option, but that doesn’t help if your application is headless. You can provide a shutdown button, but that leaves the problem of turning the device back on.

[Ivan] solved this problem with–what else–an Arduino (see the video below). Simplistically, the Arduino reads a button and uses a FET to turn off the power to the Pi. The reason for the Arduino, is that the tiny processor (which draws less than a Pi and doesn’t mind being shut down abruptly) can log into the Pi and properly shut it down. The real advantage, though, is that you could use other Arduino inputs to determine when to turn the Pi on and off.

For example, it is easy to imagine a Pi in an automotive application where the Arduino would sense the ignition was off for a certain period of time and then go ahead and shut off the Pi. Or maybe the Pi needs to be turned on when a motion sensor fires and then turned off again once there is no motion for a particular time period. Any of these strategies would be simple to build with the Arduino.

We’ve seen a similar project that used an IR remote as the trigger instead of a physical button. If you are afraid the Pi will just lose power unexpectedly, you might consider a battery backup. If powering a Pi with regular electricity is too tame for you, try steam.

Filed under: Arduino Hacks, Raspberry Pi

Super Simple Arduino Load Driver V2.0

arduino, mosfet Commenti disabilitati su Super Simple Arduino Load Driver V2.0 


Turn loads on and off with your Arduino! Use 5V to control up to 100V. Add a motor, solenoid, or get creative! P channel or N Channel.

This is version 2.0 of the previously successful kickstarter project I launched last year. I have a ton of these PCB boards left over and it got me thinking. Why not find a P channel MOSFET with the same pinout and use it to control the direction of the motor also. I looked around and found the IRF5210. I ordered up a batch and tested them out. All thats left to do now is order a large quantity for the price break and assemble the rest of the boards.

Super Simple Arduino Load Driver V2.0 – [Link]


Motion Sensing Water Gun Tweets Photos To Embarrass Enemies

arduino, arduino hacks, Bean, gun, Lightblue, mosfet, node-red, python, squirt gun, super soaker, twitter, water Commenti disabilitati su Motion Sensing Water Gun Tweets Photos To Embarrass Enemies 

[Ashish] is bringing office warfare to the next level with a motion sensing water gun. Not only does this water gun automatically fire when it detects motion, but it also takes a photo of the victim and publishes it on Twitter.

This hack began with the watergun. [Ashish] used a Super Soaker Thunderstorm motorized water gun. He pulled the case apart and cut one of the battery wires. he then lengthened the exposed ends and ran them out of the gun to his control circuit. He also placed a protection diode to help prevent any reverse EMF from damaging his more sensitive electronics. The new control wires run to a MOSFET on a bread board.

[Ashish] is using a Lightblue Bean board as a microcontroller. The Bean is Arduino compatible and can be programmed via low energy Bluetooth. The Bean uses an external PIR sensor to detect motion in the room. When it senses the motion, it activates the MOSFET which then turns on the water gun.

[Ashish] decided to use Node-RED and Python to link the Bean to a Twitter account. The system runs on a computer and monitor’s the Bean’s serial output. If it detects the proper command, it launches a Python script which takes a photo using a webcam. A second script will upload that photo to a Twitter account. The Node-RED server can also monitor the Twitter account for incoming direct messages. If it detects a message with the correct password, it can use the rest of the message as a command to enable or disable the gun.

Filed under: Arduino Hacks

DJ sets get more interactive with Cubled and Arduino

Ableton Live, arduino, Featured, Midi, mosfet, projects, tenori-on Commenti disabilitati su DJ sets get more interactive with Cubled and Arduino 


Cubled is an interactive installation made of 27 luminous spheres arranged in space to create a cube 5 mt (16.4ft) per side floating on a stage.

The project created by Giuseppe Acito of Opificio Sonico  has a structure made of steel wires, RGB LED Strips and Ikea paper lanterns.


The system is MIDI-controlled, the notes generated by a sequencer are converted to electric signals using an Arduino UNO and a Mosfet:

No DMX device was used for this system which is 12V DC powered, with slim electric wires in order to give the lightness needed to this installation. In this clip, the performance is splitted in 2 parts: in the first a kit of electronic percussion is “played” live by a step sequencer named Sonic Fraction Beatdown (a MaxMSP device for Ableton Live), the combinations of 12 MIDI notes generated are linked to the spheres. In the second part the combinations of sounds and lights are pre-programmed patterns clip and performed live by a Tenori-on Yamaha and Ableton Live. The installation was mounted inside the Link Club (Bologna – Italy) in December 2013, which hosted some world-famous DJ set, during a month of permanence.




Spining BLDC motors at super Slow speeds with Arduino and L6234

arduino, BLDC, L6234, mosfet, motor Commenti disabilitati su Spining BLDC motors at super Slow speeds with Arduino and L6234 



I used specialized triple half bridge IC L6234 (~ 8$). You can make the same spending less money (but more time) with MOSFET transistors or other IC.

L6234 datasheet is surprisingly useless. Go straight to Application Note AN1088 instead.

I added current limiting resistors (1kΩ) to all INputs and ENable pins, a bunch of capacitors recommended in application note and current sensing shunt resistor 0.6Ω (big blue one).

Spining BLDC motors at super Slow speeds with Arduino and L6234 - [Link]


Play Robotic Bongos using your Household Plants

arduino, arduino hacks, bongo, Midi, mosfet, musical hacks, plant, solenoid, Teensy Commenti disabilitati su Play Robotic Bongos using your Household Plants 

[Kirk Kaiser] isn’t afraid to admit his latest project a bit strange, being a plant-controlled set of robotic bongos. We don’t find it odd at all.  This is the kind of thing we love to see. His project’s origins began a month ago after taking a class at NYC Resistor about creating music from robotic instruments. Inspired to make his own, [Kirk] repurposed a neighbor’s old wooden dish rack to serve as a mount for solenoids that, when triggered, strike a couple of plastic cowbells or bongo drums.

A Raspberry Pi was originally used to interface the solenoids with a computer or MIDI keyboard, but after frying it, he went with a Teensy LC instead and never looked back. Taking advantage of the Teensy’s MIDI features, [Kirk] programmed a specific note to trigger each solenoid. When he realized that the Teensy also had capacitive touch sensors, he decided to get his plants in on the fun in a MaKey MaKey kind of way. Each plant is connected to the Teensy’s touchRead pins by stranded wire; the other end is stripped, covered with copper tape, and placed into the soil. When a plant’s capacitance surpasses a threshold, the respective MIDI note – and solenoid – is triggered. [Kirk] quickly discovered that hard-coding threshold values was not the best idea. Looking for large changes was a better method, as the capacitance was dramatically affected when the plant’s soil dried up. As [Kirk] stood back and admired his work, he realized there was one thing missing – lights! He hooked up an Arduino with a DMX shield and some LEDs that light up whenever a plant is touched.

We do feel a disclaimer is at hand for anyone interested in using this botanical technique: thorny varieties are ill-advised, unless you want to play a prank and make a cactus the only way to turn the bongos off!

Filed under: Arduino Hacks, musical hacks

Triggering Remote Fireworks with an Arduino and an Android

arduino hacks, fireworks, mosfet, nichrome Commenti disabilitati su Triggering Remote Fireworks with an Arduino and an Android 


With Canada day and Independence day fast approaching, some makers are looking towards setting up their own fireworks to shoot off in celebration – sure you could use a match or lighter… or you could crack out your trusty Arduino and a cellphone! (translated)

To ignite the fuse, [Oscar] is using a short length of Nichrome wire which is controlled via a Mosfet by the Arduino. To control the Arduino he’s using ArduDroid with a Bluetooth module. The app lets you trigger the various digital and analog outputs, and send and receive data.

Stick around to see a few different demonstration videos of the circuit, testing, and launching some little bottle rockets!

Alternatively, if you need more fireworks you can build a much larger (wired) setup that makes use of resistors burning out to light the fuses.

And as always, make sure you’re launching fireworks where it is legal – many cities have various laws that may change when there is a holiday weekend. Always check first!

Filed under: Arduino Hacks

  • Newsletter

    Sign up for the PlanetArduino Newsletter, which delivers the most popular articles via e-mail to your inbox every week. Just fill in the information below and submit.

  • Like Us on Facebook