background preloader

Arduino stuff

Facebook Twitter

» ATtiny45/85 Servo Library Cunning Turtle. Recently I worked on a project where I wanted to control a servo using an ATtiny85. I checked online for ready made code that did this but I couldn’t find anything satisfactory. Not wanting to switch to a larger microcontroller I decided to write my own servo library for the ATtiny85. I call it Servo8Bit. It supports up to 5 servos, runs on the ATtiny85 or ATtiny45 and uses only one 8 bit counter. I enjoy using ATtiny microprocessors in my projects, particular the ATtiny85. This library is modeled after then Arduino servo library and has an identical interface. The definition of the delay() function is omitted, which is needed to for this code to compile.

Functions overview These are the functions that are available in this library. When a servo is attached to a pin a PWM servo control signal will start being generated on that pin. Not all servos go to the same position for each pulse length. To completely stop pulsing the servo call the detach() function. Limitions of current version. Charliecube - Asher Glick. Pixy (CMUcam5): a fast, easy-to-use vision sensor by Charmed Labs and Carnegie Mellon. "This is the single most important robotics product since the Arduino. " Ted Macy, Contributing Editor, Robot Magazine "Charmed Labs is bringing the eventual robot uprising one step closer with their camera sensor. " Chris-Rachael Oseland, Austin Post "This vision sensor could be the future eyes of robots. " Mashable.com "The sheer power, flexibility and ease of use of Pixy could kick-start a whole new generation of robotics.

" "It’s revolutionary because of its speed and simplicity. " Update: we recently made another video! Image sensors are useful because they are so flexible. Pixy addresses these problems by pairing a powerful dedicated processor with the image sensor. It's possible to hook up multiple Pixys to your microcontroller -- for example, a robot with 4 Pixys and 360 degrees of sensing.

Pixy uses a hue-based color filtering algorithm to detect objects. Pixy can find literally hundreds of objects at a time. What does “50 frames per second” mean? The Shrimp. Moving Servos with a SSC-32 and an Arduino - Robotics. Next, you have to connect a jumper from RX on the SSC-32 to TX on the Arduino. Additionally, you have to connect a jumper from Ground (next to RX) on the SSC-32 to Ground on the Arduino.

In the picture below, the yellow jumper is from RX to TX, and the grey jumper is from Ground to Ground. (Image from There are two separate powering options that you will have to consider. The first is the power for the board, and the second is power for the servos. Now, connect a servo to the first port on the SSC-32, power up the board and the Arduino - let's try a sample program to control it! Download this program into your Arduino: void setup() { Serial.begin(9600);} void loop() { move(1, 2000, 100); move(1, 1000, 100);} void move(int servo, int position, int time) { Serial.print("#"); Serial.print(servo); Serial.print(" P"); Serial.print(position); Serial.print(" T"); Serial.println(time); delay(time);}

Install the Arduino IDE in Ubuntu 12.04 | Mark Loiseau. Installing the Arduino IDE in Ubuntu only takes a few minutes. As usual, it’s a better idea to install the Arduino straight from the source, instead of relying on the version in Ubuntu’s repository. While it wasn’t hard to install the Arduino IDE, I noticed that the Arduino GUI was really slow and laggy.

This is because the startup script tells Java to use Ubuntu’s GTK look and feel, which makes everything run slowly. It’s easily fixed by changing a single line in the startup script. Update: In the Arduino 1.0.1 update, “Serial Port” is greyed out. Install the Arduino IDE in Ubuntu Install gcc-avr, avr-libc and openjdk-6-jre if you don’t have it already.Plug in the board, see where it’s connectedDownload and unpack the Arduino IDEtarballRun the IDESelect your board model and serial portRun a sample programFix the buggy interface (optional)Troubleshooting Everything worked out of the box, other than the interface. Install gcc-avr and avr-libc Install gcc-avr and avr-libc for the Arduino IDE . Getting Arduino UNO to work in Linux. As of now (early July, 2011), the UNO is broken in Linux. The board is shipped with a firmware that makes it practically impossible to use in Linux.

The symptoms are : {*style:<ul style="padding-left:20px;"><li> Arduino IDE unable to detect serial port, or loosing it randomly, making it very difficult to upload a sketch or to open serial monitor. Inability to detect the board from within Pd in a predictable fashion. [comport] detects it very erratically, outputs an error when you try to open your device, and generally takes ages to react to [open( or [close(, or even [devices(. </li></ul>*} Fortunately, there is a fix! If you own the first version of the UNO board ("UNO" should be written on the back of the board), you can refer to this tutorial : If you own a "revised" UNO ("UNO R2" on the back), then follow these steps: {*style:<ol style="padding-left:20px;"><li> Install dfu-programmer by pasting this command in the terminal: </li></ol>*}

Arduino + WiiChuck steered laser pointer - Maxoffsky | MikMo. GoBetwino 0.6 on the way – for real :-) September 18th, 2011 After a very long break from work on GoBewtino, caused by having a baby, moving twice and a generally busy life, i have begun to finish the work on the next version of GoBetwino that i started two years ago. The most important new features in version 0.6 : 5 new command types, including file upload with FTP, and posting Twitter status updates.All code concerning sending and receiving emails have been totally rewritten, so now mail accounts that require SSL (Gmail for instance) can be used.Serial monitor like functionality build in to simplify debugging while using GoBetwino.It’s now possible to test commands without having your Arduino connected. I dumped the Indy sockets library i used for pop3 access in favour of the OpenPoP library. Right now the new version is feature frozen, i’m not adding more to it.

I will post more details here soon. Going better May 11th, 2009 So soon i can get on with the planned 0.6 update of Gobetwino. Gobetwino. I can't guarantee that every mail will receive an answer but I will try. Gobetwino is not restricted to work with Arduino, the serial port can be configured so it can work with most devices that can send and receive strings over a serial line. Gobetwino is listening on the serial port, for "commands coming from Arduino, and in response it will do something for Arduino and possibly return something to Arduino.

Gobetwino defines a set of command types that can be used as templates to create actual commands. Arduino can ask Gobetwino to execute these commands, and return something to Arduino. So what can Gobetwino do? Start a program on the PC. Sculpey Polymer Clay - the Mokume Gane Technique. Playground - ArduinoUsers. :: Exhibition :: The place to share and show off projects Until someone finds a way to categorize what is here, be sure to remember that your browser has a "find in this page" tool (ctrl-F in Firefox) which can help you find what you are looking for!

Arduino user projects How Did I Improve My Central Heating Control with Arduino? - Before I started this project, my central heating was controlled with Danfoss TP7000 room thermostat only by switching heating pump ON-OFF. Then I heard about Arduino, get interested, and decided to make an advanced control system for central heating: weather compensated heating controller, room thermostat, web-based remote control for the whole system, and web logging. Blog : Hacromatic: Electronics kits and projects worldwide. I couldn’t find much information about how to use the Arduino motor shield (as of late 2012), so I thought I’d show how to set up the connections for both stepper motors (4, 5, 6, and 8 wires) and DC motors, along with some basic sketches to drive them. Stepper Motors Steppers can be broadly classified as 2/4-phase or 5-phase. This breakdown covers the vast majority of stepper motors you’re likely to encounter. 5-phase motors typically provide lower vibration and smaller stepping angles than 2 and 4 phase motors, but they are less common and won’t work with the Arduino motor shield, so I’m not going to talk about those here.

That leaves 2/4 phase motors. 8 Wire Stepper Motors If you have the wiring documentation for the motor then you can skip ahead to the section on power supply issues. When you’re first starting out though, or if you’re unsure about the motor, it doesn’t hurt to make a resistance table, for each wire pair, like so: Label the 4 wire pairs a:b, c:d, e:f, and g:h. FrSKY Telemetry Projects - Flytron Projects. This tiny PCB including only 3 component for measuring the 0-36V over FrSky’s brilliant analog voltage input. Our new FrSky telemetry display supporting this sensor. You can build it your self or buy from our shop.

Hi Guys Here is the our new telemetry firmware (v2.6 didn’t released yet) and ground station software. We removed IR sensor from simpleOSD on SimpleOSDv2 boards and we are using It’s signal and ground pins for telemetry output. This output %100 compatible with FrSky v2.0 telemetry Rx & Tx modules. Yesterday we made a Nokia LCD adapter for using this cute screens. Hi Everyone, We are designing a new and Opensource LRS system with telemetry and Our Tx and Rx modules will include RS232 ports like FrSKY. Electronics : Microprocessors : How to make an Arduino-compatible minimal board. Make your own board Once you have been playing with Arduinos for a while you probably are thinking that you want to deploy one, but without the expense, and physical size, of using a whole new Uno board. This post describes how to do that. AtMega328P chip We will start off with a "raw" Atmega328P-PU chip, the sort of thing you might buy off the shelf from Digi-Key, Element14, or other suppliers: Note that pin 1 is at the end where there is a notch in the plastic and an extra hole on the top.

The chip itself can be purchased for around $US 3. Anti-static precautions To avoid "zapping" your chip avoid handling it by the legs. Minimal wiring The chip pinouts are: The very basics are to wire +5V to VCC and AVCC (AVCC is the analog power in), plus both GND pins (normal and analog). Connected are: +5V to VCC (pin 7) (red wire)GND to pin 8 (blue wire)+5V to AVCC (pin 20) (red wire)GND to pin 22 (blue wire)Connect /RESET (pin 1) to +5V via a 10K pull-up resistor Power supply Test the chip Wiring Type "L" ... Arduino and 7 Segment LED. 7 Segment LED Click here to like us on Facebook! How many TV shows and movies have you seen with some mysterious electronic device counting down to zero on one of those 7 segment LED displays? If we were in that situation, we would be thinking: "Wow, where did they get that in cool blue? They are usually red. " "I wonder if it has a common anode or cathode?

" "That would take up a lot of IO pins on an Arduino. " The seven segment display is a pretty simple device. Video Demo of Arduino 7 Segment LED * This tutorial has been updated with info for our new common cathode, seven segment LEDs * Hardware used in this tutorial: Arduino board, Solderless breadboard, jumper wires, and the blue or red seven segment LED. Instructions: If this is your first Arduino project, first go through our “Arduino: Getting Started” and “Beginning Solderless Breadboards” tutorials. Use our LED resistor calculator to calculate the resistor value that won't destroy your LED!

Software OK, that was the short, tricky version. Operating Two Servos with the Arduino. The Arduino can control two servos with the same ease as one. All it takes is creating a second instance (copy) of the Servo object, giving it a unique name. For example, in a two-wheeled differentially-steered robot you might call one servo object servoLeft, and the other servoRight. The Arduino lacks direct connections for attaching the servo motors. Instead, the mini breadboard provides prototyping space for connecting both servos, as well as the AA battery holder that powers the servos. Refer to Figure 1 (schematic) and Figure 2 (pictorial) for wiring the solderless breadboard. Using a strip of 0.100" double-sided (long) male header pins, break off two sets of three pins and one set of pins for the AA battery connection.

[Figure 1] [Figure 2] Note that you want the version of male header pins that are “double-sided”—they’re long on both sides. The reference design uses an AA battery holder with a four-pin female connector. Ground (–) is typically black or brown. Servo Test Sketch. 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. Top 40 Arduino Projects of the Web. Burn a bootloader to a blank atmega328/atmega328p with an Arduino UNO | 3guys1laser.com. Build your own optiLoader shield! You cant use your Arduino UNO as programmer unless you modify it, but i didnt want to do that! Some people had luck using a Resistor and Capacitor to disable the auto reset feature but it did not work for me (Using an Arduino UNO R2) So i tried using a parallel port programmer but never got it to work. It seems easy, so if your interested go ahead and try it yourself, but be warned, could lead to frustration :) Fortunately Bill Westfield wrote optiLoader!

The readme file doesent tell you how to connect the blank chip so i asumed that you need an oscillator and a pull up resistor and... well... it worked! You need: Working Arduino (with µC and Bootloader) - optiLoader will run on that one16MHz oscillator2 x 22pF ceramic capacitor10KΩ resistor Breadboard setup looks like this: Powering the circuit over pin 9 is questionable, but seems to work well with this setup (look at optiLoader source files for more info on this). It Editor. Arduino-Python 4-Axis Servo Control | Principia Labs. Top 10 DIY Arduino Projects and HOW-TO Tutorials! Freeduino. YourDuino. AccelStepper: AccelStepper library for Arduino. Editing "Unnamed Circuit". Minimalist Arduino | theTransistor.

Arduino: The Documentary (2010) LED Cube Editor | Tim’s Mind. Gleichstrom-Getriebemotor GMPD/404980-1, 12 V- - Motoren - DC-Getriebemotoren - Arduino GCode Interpreter. Contraptions - Contraptor. Micro Maestro 6-Channel USB Servo Controller (Assembled) Microcontroller circuit with copper tape. Magnetic Field Sensor Board. Arduino: Dynamic Turning: Servo: Speed Freak Eye: Houston, we have a problem:Wiring Diagram.

Spooky Projects – Introduction to Microcontrollers with Arduino. Arduino Serial Servo Control | Principia Labs. Physical Etoys « GIRA. Minibloq. Arduino hacks. Playground - Ps2mouse. Mini Volt Meter ID: 460 - $7.95. The World Famous Index of Arduino & Freeduino Knowledge. Welcome | Modern Device. OpenMoCo | The Open-Source Photographic Motion-Control Community. Playground - Hall Effect. Main Sheepdog Guides Arduino Page- (ArTut.htm)