Das Handwerk – Werbung

Ich finde das Softwareentwicklung auch ein Handwerk ist 🙂

Silvester 2009

Arducar – RC Car with wifi

arduino motoshield soldering action

After about 2 houres of soldering everything works well 🙂

Now i can control my servo & dc motor with ease

#include <servotimer1 .h>
 
ServoTimer1 servo1;
ServoTimer1 servo2;
 
void setup() {
  Serial.begin(9600);           // set up Serial library at 9600 bps
  Serial.println("Servo test!");
  servo1.attach(10);
  servo2.attach(9);
}
 
 
void loop() {
  Serial.print("tick");
  servo1.write(180);
  servo2.write(0);
  delay(1000);
 
  Serial.print("tock");
  servo1.write(0);
  servo2.write(180);
  delay(1000);
}
</servotimer1>

Arduino LED Matrix Control Part II

IMG_0105
IMG_0106
IMG_0108
IMG_0107

With the Arduino app you can control a led matrix over wifi on your iphone.

Later you can save your „icon“ and load older ones.

Sourcecode is still a bit clunky. But it Works 🙂

- (void)drawRect:(CGRect)rect {
 
	CGContextRef context = UIGraphicsGetCurrentContext();
	if(isOn) {
		[color setFill];
	} else {
		[[UIColor grayColor] setFill];
	}
 
	CGContextSetLineWidth(context, 1.0);
 
	CGContextAddEllipseInRect(context, rect);
	CGContextDrawPath(context, kCGPathFillStroke);
}

Download Sourcecode