git·hub /’ɡɪtˌhʌb/
GitHub is the best way to collaborate with others. Fork, send pull requests and manage all your public and private git repositories.
A robotic – automatic notifier for google plus with an arduino, a servo motor and an… icecream box! (plus.google.com)!
How it works?
A c# tool call and parse this url: https://plus.google.com/u/0/_/n/guc, that returns, as response, a txt file called response.txt that contains these informations:
)]}’ ["on.uc",2,300,"101932929612066440630"]
after “on.uc” we can see number 2. The number of notifications!
Google notification url was found reading html page of google+ login. “On Success“, open url. To show you if there are any notifications.
The tool send on serial port a value only if > 0.
Arduino recognize the string and move the servo +/- 90°. The box will open (showing google logo) or close (hiding all)!
Arduino code:
1 2
servo.write(0); if(val >0) servo.write(90);
Very easy to do, 30m of work, but so coool!!!
Making of photos and video (today, only a simulated video because google plus and notification are under test):
Hi all!!
Today i show how is possible to connect iPhone to Arduino without any Wifi or Ethernet shields!
Here the app that controls 4 leds (green yellow, red and orange), a DC motor with a fan, a piezo speacker and the room temperature with LM32 sensor!
What you need?
– Arduino with anything you want
– iPhone / iPad / iPod
– A website to host php pages
– An internet connection on pc (Win + Mac)
What you need to know?
– A little bit of electronics
– C language
– C# language
– PHP language
– Objective-C language
Good.
In PHP make a stupid page that get in $_REQUEST a command and store it to a file on server!
Three lines of code…
In C# make a web listener that call php page and checks the output. If any condition are verified, send to COM9 the value that you want to get from arduino.
In C from Arduino, in the Loop() read Serial value. If the value respond to your configuration, call LigthUpLed(green) for example!
In Objective-C make an iPhone App with a stupid layout that call in GET your PHP page and send a command!
To make everithink work, run your C# listener app on Windows and from your iPhone send get call to web server!
Now, your nerd app will control arduino!!!
In this example app that i made, i control HIGH or LOW for Four LEDs, a DC Motor, a Piezo Speacker and a Temperature Sensor.
I used resistors, 4 leds, LM32, DC Motor, TIP120, diode, wires, beer.
if(val ==110){// "n" = 110 in dec from ascii
mail = HIGH; }elseif(val ==109){//109 = "m" in dec from ascii
mail = LOW;
/* accendo il led*/
digitalWrite(ledPin, HIGH);
/* fischio avviso mail
tipo fischio di fine
partita di calcio */
digitalWrite(beepPin, HIGH);
delay(500);
digitalWrite(beepPin, LOW);
delay(200);
digitalWrite(beepPin, HIGH);
delay(500);
digitalWrite(beepPin, LOW);
delay(200);
digitalWrite(beepPin, HIGH);
delay(3000);
/* rimetto tutto a posto */
digitalWrite(beepPin, LOW);
digitalWrite(ledPin, LOW); } }
After that Arduino code was uploaded to chip and programmed successfully, I make a C# app that loop on “while true” to check google mails every 10 seconds.
If there is a new incoming mail, it send to serial port (COM9, 9600) a char, “m” for new mail and “n” for NO mail that are interpreted from arduino respectly to 109 and 110 in DEC format.
Arduino CODE recognize the DEC (ascii code, m||n) and executed code relatively condition.
If there was a “m” code, it send an HIGH signal (1) to GREEN LED and an HIGH to speacker (temporized).
Until you don’t read your message, it beeps every 10 seconds!!
To do all of this tricks, you need to create a C# Windows || Console app and run on COM9 listening arduino.
This is C# code (VS2010 – C#4.0):
/* SEND / READ SERIAL PORT COM9 DATA */
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
try{
SerialPort port =new SerialPort("COM9", 9600, Parity.None, 8, StopBits.One);
port.Open();
Hi all,
i need to deploy homebrews apps to my WP7 phone, download photo and data, prepare it for next update…
…but when i connect, zune show me this error:
“The Zune software can’t access important data on your device“.
It’s a simple web page. You can easily upload a photo, set your phone size and click generate!
Easy easy easy!
Now, after loaded an image and generated tiles, you need to center image in internet explorer, open tool bar menu and click “Pin to start” or “Aggiungi a start”, like this:
Move your created tile where you want and compose your collage!
Hi all,
a large collection of tricks that you made with registry edit in your Windows Phone 7.
These are all hidden features, but simply editable from the registry directly from phone.