background preloader

Medical and Health Related Projects with Arduino

Medical and Health Related Projects with Arduino

Stepper Motor Quickstart Guide Stepper Motor Quickstart Guide Skill Level: Beginner by Joel_E_B | January 03, 2013 | 26 comments Stepping Up to the Challenge There are a handful of motors to choose from, and sometimes it’s unclear as to which one will be best suited for your particular application. Requirements Here is a list of recommended items needed to follow along: How it Works Stepper motors vary from regular DC motors in that, rather than just spinning in one direction or another, they can spin in very precise increments. Stepper motors can move an exact amount of degrees (or steps) when told to do so. There are numerous varieties of stepper motors as well as driver boards with which to control them. How to Use it Here we will discuss how to assemble, hook up and control your motor with firmware uploaded to the Arduino. Assembly The simplest way to use the EasyDriver is to attach headers to it for easy insertion onto a breadboard. The first step is to solder straight male headers to the EasyDriver. Hook-up Firmware

Resources You had such a great time learning to solder your Simon that now you want to take that leap and learn how to program Arduinos. Luckily the Simon uses the same microcontrollers as Arduinos so you can learn how to add an analog sensors to the Simon and then reprogram it with a FTDI cable. Learn the four basic skills of microcontroller programming: Analog, Digital, Input and Output. Concepts that will be covered include: Software setupInput/ OutputDigital / AnalogSerial CommunicationInternal pull-up resistors PowerPoint Presentation Tutorial Re-Programming the Simon Says Example Code Simon Says Github Repo Material by Pete Lewis and Linz Craig Design by Amanda Clark High Sensitivity Arduino Sound Level Detector Generally we want to sense the environment when something interesting is occurring. Sometimes the presence of sound is indicative of an interesting activity. If we can detect sound level we can trigger a sensing activity to capture information about the activity of interest. I have posted a short video of this simple high sensitivity Arduino sound level detector working. In this project we use an Arduino Uno, an electret microphone and an LM358 dual operational amplifier to create a simple sound level detector. Prototyping this on a breadboard looks something like this: The actual breadboard prototype appears below: ... and the simple sketch I used to drive the Arduino Uno appears below: I include the sketch code below if you'd like to try it out yourself: Stay tuned for projects that receive the sound detection as input and use it to drive other interesting activities.

bildr Easy Driver Examples Easy Driver Examples Sample code and projects to get your stepper running! Lots of folks buy EasyDrivers or BigEasyDrivers and then get them to work just fine in their project. But some don't, and so I thought it would be a good idea to write down some simple instructions for getting your Easy Driver working as quickly and easily as possible. All of these examples are going to be done with my Easy Driver and Big Easy Driver stepper motor driver boards driving several different random stepper motors I have lying around the lab. And don't forget to read Dan Thompson's excellent Easy Driver tutorial blog post if you want to read more up on this stuff. Note1: All examples will work equally well with Easy Drivers or Big Easy Drivers. This is the most basic example you can have with an Arduino, an Easy Driver, and a stepper motor. Then load this sketch and run it on your Arduino or chipKIT: It doesn't get much simpler than that. So how fast is this code going to run the stepper? Questions?

How to Install and Setup EAGLE Favorited Favorite 9 Introduction Printed circuit boards (PCBs) are the backbone of every electronic gizmo out there. They’re not flashy like those microprocessors, or abundant like resistors, but they’re essential to making all components in a circuit connect together just right. We LOVE designing PCBs here at SparkFun. This first tutorial goes over how to install the software, and tailor-fit its interface and support files. Why EAGLE? EAGLE is one of many PCB CAD softwares out there. Cross-platform – EAGLE can run on anything: Windows, Mac, even Linux. Of course, EAGLE has its drawbacks too. Recommended Reading Here are a few tutorial and concepts you may want to familiarize yourself with before dropping down into this rabbit hole: Download, Install, Run EAGLE is available on Cadsoft’s (the developer company) download page. EAGLE installs just like any old program, it’ll self extract and then present you with a series of dialogs to configure the installation. Licensing EAGLE – and zoom out –

Using EAGLE: Schematic Favorited Favorite 6 Introduction PCB design in EAGLE is a two-step process. This tutorial is the first of a two-part Using EAGLE series, and it’s devoted entirely to the schematic-designing side of EAGLE. Suggested Reading If you’d like to follow along with this tutorial, make sure you’ve installed and setup the EAGLE software. We’d also recommend you read and understand the concepts behind these tutorials: Create a Project We’ll start by making a new project folder for our design. Give the newly created, red project folder a descriptive name. Project folders are like any regular file system folder, except they contain a file named “eagle.epf”. Create a Schematic The project folder will house both our schematic and board design files (and eventually our gerber files too). To add a schematic to a project folder, right-click the folder, hover over “New” and select “Schematic”. A new, blank window should immediately pop up. Adding Parts to a Schematic Schematic design is a two step process. .

Using EAGLE: Board Layout Favorited Favorite 8 Previously on Using EAGLE EAGLE’s board designer is where a good portion of the magic happens. In this tutorial we’ll cover every step in EAGLE PCB design: from placing parts, to routing them, to generating gerber files to send to a fab house. Create a Board From Schematic Before starting this tutorial, read through and follow along with the Using EAGLE: Schematic tutorial (not to mention the Setting Up EAGLE tutorial before that). The schematic from previous tutorial, complete with an ATmega328P, barrel jack connector, LEDs, resistors, capacitors, and connectors. To switch from the schematic editor to the related board, simply click the Generate/Switch to Board command – (on the top toolbar, or under the File menu) – which should prompt a new, board editor window to open. The board and schematic editors share a few similarities, but, for the most part, they’re completely different animals. Layers Overview PCB composition is all about layering one material over another.

Connecting Arduino to Processing Contributors: b_e_n Share Use this URL to share: Share on Twitter Share on Facebook Share on Google+ Introduction So, you’ve blinked some LEDs with Arduino, and maybe you’ve even drawn some pretty pictures with Processing - what’s next? In this tutorial we will learn: How to send data from Arduino to Processing over the serial portHow to receive data from Arduino in ProcessingHow to send data from Processing to ArduinoHow to receive data from Processing in ArduinoHow to write a serial ‘handshake’ between Arduino and Processing to control data flowHow to make a ‘Pong’ game that uses analog sensors to control the paddles Before we get started, there are a few things you should be certain you’re familiar with to get the most out of this tutorial: From Arduino... Let’s start with the Arduino side of things. First things first. Ok. Open up the Arduino software. The nice big white space is where we are going to write our code. void setup() { Serial.begin(9600); } This is called our setup method.

Final Lightbar Controller I've finished the lightbar controller! This device analyses the music it picks up via the electret microphone, then flashes the LEDs in time to the music. It's encased in the box SparkFun sent me the microphones in, since the box was just begging to be used as a case for something! I'm sure that was intentionally designed. Getting a bit more technical: The microphone picks up the noise and sends this to the LM386 amp, which amplifies it about 200x before it's read by the ATtiny13's ADC at 8-bit resolution. As a result, the LEDs flash on when the music hits a peak, and are off otherwise - no matter what volume. Check out the video of it in action: Download the schematic, PCB layout, code: (all files released under Creative Commons BY-SA-NC 3.0).

The 74HC595 Shift Register | Arduino Lesson 4. Eight LEDs and a Shift Register Before I go through the code, let's have a quick look at what the chip is doing, so that we can understand what the code has to do.The chip is of a type called a shift register. The shift register holds what can be thought of as eight memory locations, each of which can be a 1 or a 0. To set each of these values on or off, we feed in the data using the 'Data' and 'Clock' pins of the chip.The clock pin needs to receive eight pulses, at the time of each pulse, if the data pin is high, then a 1 gets pushed into the shift register, otherwise a 0. The chip also has an OE (output enable) pin, this is used to enable or disable the outputs all at once.

Related: