HTML script to listen and send commands to Arduino via Serial Port

This is the source code for the web page interface to control your robot. For this to work you need the corresponding NodeJS script behind it.   <html> <head> <title>Rasinro – Rasberry Internet Rover</title> </head> <body onmousemove=””> <h1>Rasinro – Raspberry Internet Rover</h1> <p>Status: <span id=”status”>Waiting…</span></p> <table border=’1′> <tr align=”center”><td><button id=’fl’ type=”button”>Forward…

nodeJS on Raspberry Pi

NodeJS Script to listen and send command to Arduino Robot

var SerialPort,fs, http, io, server, net, serial, port; fs = require(‘fs’); http = require(‘http’); net = require(‘net’); var light1 = true; var light2 = true; SerialPort = require(‘serialport’).SerialPort; port = ‘/dev/ttyACM0’; server = http.createServer(function(req, res) { return fs.readFile(“” + __dirname + “/mobil2an.html”, function(err, data) { res.writeHead(200, { ‘Content-Type’: ‘text/html’ });…

slide

Communicates with Arduino via Website with NodeJS

Install Node JS Install Node Serial Port: https://github.com/voodootikigod/node-serialport Install Coffee Script: npm install -g coffee-script Copy the following coffee script and compile it {SerialPort} = require(‘serialport’) fs = require ‘fs’ port = ‘/dev/ttyACM0’ serial = null value = 0x00 toggle = => value = if value == 0x00 then 0x01…

slide

Arduino Robot Functions Ideas

All these functions are possible using DFRobot Romeo V2. Feel free to suggest a better board or function wish-list items. Digital Pins: Blink LEDs Adjust LED brigthness with PWM  Motor: PWM speed and direction control  Servo: Pan & Tilt Object grabber  Buzzer / Speaker: Play a short tune Sing a song…

Play Mario Bros theme song on Arduino and 2 piezo buzzer / speakers in Stereo Harmonies

Here is the code! Go get it, Luigi! Orignal work by John Harrison that the following code was based on: http://cratel.wichita.edu/blogs/engr101fall2010/2010/11/29/2-voices-simultaneously-on-1-arduino/ // 2 voices on 1 Arduino // demo by John Harrison // Nov 28, 2011 // public domain // Modified by Dipto Pratyaksa // Added Mario tunes by Dipto…

« Previous PageNext Page »