background preloader

Arduino

Facebook Twitter

Multiple Buttons on 1 analog pin. Made some changes to the code and incorporated an LCD. Basically the code now moves the cursor around the LCD screen. Now with the LCD connected the code worked fine. Then when i turned on the back light it became such a drain on the power that the buttons didn't work. So i went and changed the values to compensate for this. I also did testing using a battery pack of 4 AAA batteries and a 9V battery. It all works perfectly well. Though the batteries are relatively new. Now the values for button 1 + button 5 and button 1 + button 6 overlap.

/*AnalogButton_CombosVersion 0.1 Connection more then one button to a single analog pin. The Circuit: Most other analog buttons circuits call for the resistors to be lined up in series from ground. */#include <LiquidCrystal.h>LiquidCrystal lcd(7, 6, 5, 4, 3, 2); void setup(){ lcd.begin(16, 2); lcd.setCursor(x,y); lcd.write(255);} void loop(){ // If we have gone on to the next millisecond if (millis() ! Arduino Intervalometer Basics | OpenMoCo. Monorail track. Lightweight monorail track and dolly design The Mumford Monorail is an exceptionally efficient, compact, and light weight motorizedf track and dolly.

We have refined a design that's ideally suited for remote locations where the gear has to be carried in. It's much smaller and lighter than "skateboard wheel" designs. A four foot track and carriage weigh less than seven pounds. The Time Machine, motor driver, and battery all fit in a small Pelican 1200 case. The Moco Time Machine can drive the carriage in equal increments between each exposure, or with ramped pan programs. Because the carriage is driven with a stepper motor, it moves a precise amount between each exposure. We have found that the standard bearing pads made for the aluminum rail have too much play for a perfect fit. We correct this by machining custom bearing pads out of Delrin that fit the monorail precisely.

We have added a screw adjustment to each side of the carriage to take up any remaining horizontal play. IGUS Belt Driven Motorized Servo Slider. After finishing my DIY belt-driven backpack-sized IGUS slider I discovered that no matter how carefully I turned the crank or pushed the carriage I could not get completely smooth motion across the full length of the slider. Since I had a few servo components lying around from a previously unfinished project I decided to replace the handwheel with a continuous rotation servo.

The servo and the controller are from ServoCity.com. The fancy controller box is not necessary to the project - it is a way for me to add my own potentiometer to the ServoCity controller so as to have a larger knob. The power comes from an iGo USB battery pack. The servo mount was the only part that needed to be fabricated. Detailed Parts List:Servo Components:HiTec HCR-1425CR Continuous Rotation ServoDual Servo DriverShaft Coupler (1/4") Power:Igo Rechargeable Power Pack USB to 5.5mm / 2.1mm Power Cable Laser Cutting:Pololu.com. Iphone serial communication « Conversations with spaces. Apple has not made it easy to let the iphone communicate with external devices. Basically, you need a jailbroken phone to do anything.

This post covers the current state of serial communication on the iphone. A succesful example of making an application that uses the serialport on the iphone is xGPS, which let you connect to an external GPS. There are two sites that kept showing up when I looked at solutions for accessing the serial port. One solution described on ohscope, uses the mobile terminal app available from Cydia, in combination with a serial comunication program called minicom.

Basically it lets you open a serial connection and you can send and receive data using the terminal window. The other solution on devdot, dating back to 2007, is a serial communication application written in C, which is still the example that shows up in different forums. Maybe sometime soon it will be possible to access the serialport on the iphone without jailbreaking it. Mobile terminal wiki Like this: Devdot.wikispaces. iPhone/iPod Touch Serial Port Tutorial By Collin Meyer (TheRain) 12-09-2007DISCLAIMER: Interfacing electronically to the Iphone has the potential to cause severe damage to your Iphone or cause your Iphone to become non-functional. By following this tutorial you take sole responsibility and understand the risks of what you are doing. Summary This tutorial will explain how to use the serial RX and TX lines on the Iphone as a standard UART serial port.

Software on the Iphone can access the UART using the same libraries and functions as in any UNIX software. This tutorial was created to explain how to get past this issue. This tutorial will explain some of the basic parts and code needed to use the UART.ToolsJailbroken Iphone with BSD Subsystem installed (Search the web for jailbreak tutorials)Iphone development toolchain for Mac OSX, Linux, Windows (Cygwin) or other OS. WARNING! The Connected Device in this case is simulated by a Windows program written in C#. Interactive Mud Hut: ipod remotes - step by step. Bluetooth modules > communication modules > integrated circuits > semiconductors // Wide choice of elements and components electronic parts. The company Transfer Multisort Elektronik has in its offer products of the following companies: MOLEX, FLUKE, RICH.

Bluetooth Modem - BlueSMiRF Gold. Stepper Motors | code, circuits, & construction. A stepper motor is a motor controlled by a series of electromagnetic coils. The center shaft has a series of magnets mounted on it, and the coils surrounding the shaft are alternately given current or not, creating magnetic fields which repulse or attract the magnets on the shaft, causing the motor to rotate.

This design allows for very precise control of the motor: by proper pulsing, it can be turned in very accurate steps of set degree increments (for example, two-degree increments, half-degree increments, etc.). They are used in printers, disk drives, and other devices where precise positioning of the motor is necessary. There are two basic types of stepper motors, unipolar steppers and bipolar steppers.

Unipolar Stepper Motors The unipolar stepper motor has five or six wires and four coils (actually two coils divided by center connections on each coil). The center connections of the coils are tied together and used as the power connection. Bipolar stepper motors Two-Wire Control. Unipolar Tutorial. Controlling a Stepper Motor « cyancdesign [Chris Yanc] One day I tore apart a scanner I owned. I didn't have the power cord for it, so no loss. In fact it became a gain! Time to learn about the stepper motor.

I started researching, like most things I didn't get it at first. But I didn't want to tear apart the motor. I wanted to use it. With some really basic Arduino knowledge I started there. Sparkfun is AWESOME too! It's nice, the EasyDriver powers the stepper motor so 12V doesn't have to find its way through the Arduino. This site help me a lot to understand what a stepper motor is, and how to get started. see Tom Igoe's notes on steppers. Or, here is the exact code I used. After that was running, I wanted more control. Some differences from the above code is that there is no longer a progression of speeds automatically.

And here is the code for you to try out. So if anything looks out of place or completely wrong, let me know, and let me know why it is wrong too. Tags: arduino, stepper motor, Tutorial. StepperUnipolar. Learning Examples | Foundations | Hacking | Links This page shows two examples on how to drive a unipolar stepper motor. These motors can be found in old floppy drives and are easy to control.

The one we use has 6 connectors of which one is power (VCC) and the other four are used to drive the motor sending synchronous signals. The first example is the basic code to make the motor spin in one direction. The prototyping board has been populated with a 10K potentiomenter that we connect to an analog input, and a ULN2003A driver. Picture of a protoboard supporting the ULN2003A and a potentiometer Example 1: Simple example Example 2: Stepper Unipolar Advanced References In order to work out this example, we have been looking into quite a lot of documentation.

. - information about the motor we are using - here - basic explanation about steppers - here - good PDF with basic information - here. Mechanical Components | Bearings and Seals | Linear Guides, Rails and Carriages. DIY belt-driven IGUS camera slider like pocketdolly. , but much smaller and lighter. I cut the slider down to 30" and drilled and tapped 1/4-20" holes for legs and the Arca Swiss style quick release plate . I used an extra long quick release plate and drilled 2 holes to keep the slider from twisting when mounted on the tripod. The legs are made from dual flash brackets and some round knobs I found on eBay. The knobs were plastic and had to be dipped in rubber Plasti Dip to keep the slider from sliding around on a smooth surface. A 1/4" hole was drilled in the carriage for the Arca Swiss style ball head . 10-24 holes were drilled and tapped on each side of the carriage to hold small screws around which I was going to wrap the drive belt.

The drivetrain is built around a Sherline 2.5" handwheel - this is the only handwheel I could find to fit a 1/4" shaft. Detailed Parts List: Slider:1 x DryLin W1040-A Linear Motion System Feet:2 x Dual Flash Bracket 4 x 1/4-20 ball knobs Tripod / Camera attachment:1 x Arca Swiss compatible quick release plate. Hepco Telescopic Slides. DIY Mechanical Crank Driven Camera Slider. Sliders have caught on in popularity recently with the lightweight DSLR camera explosion. Some say that the effect is overused – perhaps it is, but in my mind adding some slight subtle camera movements to your shot adds a tremendous amount of production value. And when it comes to subtle movement, sliders deliver the most bang for the buck, both in terms of cost and ease of setup and use. I’m going to demonstrate how to add a crank mechanism to an existing slider such as the indieSlider which I’m using here.

A little bit of ingenuity and you should be able to adapt this to any slider. But like all things on this earth, everything good thing comes with a drawbacks. A basic slider’s lateral movement is based on the human’s ability to smoothly push the slider carriage back and forth. Having done this a few million times, it’s not always so easy to get a great take out of the box. So I wanted to take the human element out of it – or at least change the way the slider is powered. Choosing a Motor Type for Your Motion Control Rig | OpenMoCo. DIY camera motion control. Hows about moving your HF100 like a pro? DIY camera motion control from Martin Koch on Vimeo. The system consists of a ready-made IGUS DryLin W rail system and a small stepping motor which is controlled by an Arduino interface board. Once the controller program is loaded the system works stand alone. It can be powered by a battery and can be controlled by a simple power switch because the programmed task starts automatically each time the Arduino board is powered on.

Slider 1000 mm long Igus DryLin WS 10-80 rail. The Igus order number for a complete system with 1 meter long rail and 150 mm sledge is WK-10-80-15-01, 1000 (the first number is the rail diameter in millimeters, second is the rail width followed by length of sledge, number of sledges and rail length). Official Igus procedure for aligning the carriage (needs to be done once). 1. Controller board Arduino Duemilanove (or Arduino Uno see update below) or Arduino Nano USB I/O controller board. I used the Arduino Nano. Software Ideas. Create Techno with a Laser Harp. Ever wanted to make your own techno music, but are tired of the standard midi controller?

Well, you could build a harp (of all instruments) out of lasers and then play it by breaking the beams of light. See how it’s done. The harp is connected to the software synthesizer, the TAOS sensor array sits on the floor in its own stand. The array above the harp is just made up of mirrors for added p’zazz. How it works: Basically an Arduino connects to a 12-bit DAC chip (TLV5618) using the SPI 3 wire interface.

Buy your next laser from the HacknMod Store. High Speed Photography using the Arduino. Using a laser and sensor to create an electronic trip wire, this high tech photographer used the Arduino programmer to capture high speed pictures of liquid droplets, creating this outstanding collection of photographs.� His photos can be seen below, and you can learn how to make your own with the full tutorial and project code.� Pick up some low priced lasers and other project supplies in our store. Arduino High Speed Photography Trigger.