Posts

Showing posts with the label arduino

Serial and pixels for breakfast. Arduino + pygame.

Image
Taking a byte of bits of Serial, along with Green screen with Sam, pygame, and an Arduino hooked up to a light sensor and a motor thing. Coffee too?  Naturally. Where do we begin?  At the end of course.  A video of the result... The arduino code #include < Servo .h> Servo myservo; int potpin = 0; int val; void setup () {    Serial . begin (9600);   myservo. attach (9); }    void loop () {   val =  analogRead (potpin);    Serial . println (val);   val =  map (val, 62, 540, 0, 179);   myservo. write (val);    delay (15); } python pygame code Extended the " green eggs and ham" code I made recently to read serial data from the Arduino, and paint the screen different shades of green, whilst also making some silly sounds depending on the value read from the light sensor. import os import pygame import serial # guessing serial ports nam...

Touchless UI with a Light Dependent Resistor, and the Arduino.

Image
Touchless UI?  This is the next step in my little adventure into the world of Arduino... It can sense light, from which the Ardunio reads an analog signal and then drives a Servo Mototor.

Arduino Servo motor, and a Potentiometer

Image
Moving a servo motor(vrmmm vrommm) based on the analog input Linearly interpolated (LERP'd) from the Potentiometer (turny thing).

Arduino, Analogout fading LED.

Image
So the Arduino adventure continues... This time, playing around with fading a light via an Analog output.

LED, lumens and a multimeter

Image
Picked up a small 360 lumen LED light with built in heatsink. As well as a multimeter.  Going to use them in a projector project with the Arduino. LED lights with built in heatsink, and a multimeter.

Amplification via a NPN bipolar transistor.

Image
In this part of the little Arduino adventure, I've been messing around with the Fritzing prototyping application.  This lets you design things based on bread board layouts, then to generate Schematics and PCB. Unfortunately I couldn't get the schematic to draw properly.  Some connections are missing or wrong.  But that's ok, I'm not using it for anything serious :) Behold some pretty screenshots! Schematic... slightly wrong. Bread board diagram made in Fritzing.

Push the button!

Image
The little Arduino makes the lights go on and off.  Simply amazing ;)

Arduino blinking lights.

Image
Working on an Arduino(micro controllers) project with a friend.  Have to start somewhere... and that somewhere is programming the famous Blinking Lights !