Tagged Questions
2
votes
1answer
65 views
How to read serial port data from javascript?
I have connected an Arduino to my laptop using USB, and I can read the serial data using Processing.
Is there any way to get this data in real time into a local webbrowser? (for example, a text field ...
1
vote
1answer
29 views
Arduino with Node.js not working
I'm working on a project which has an Arduino Uno and using a UDP connection, it'll send the data to my Mac running a Node.js module to get that data and print it out.
Here's my Arduino code :
...
1
vote
2answers
62 views
Send values from arduino to Highcharts
I am trying to send data from my arduino to Highcharts via ethernet following this two tutorials:
1.http://startingelectronics.com/tutorials/arduino/ethernet-shield-web-server-tutorial/SD-card-gauge/
...
0
votes
3answers
123 views
jQuery - getElementById - how to change?
I am using a web page as a server and the Arduino as a client. whenever any modes is active the arduino will send
<LED>on</LED>
so the server based on this will change the status. ...
1
vote
1answer
114 views
Chrome.serial API - reading the right number of bytes via serial
I'm working on a Google Chrome extension that communicates with an Arduino UNO over serial. I wrote the following function sendSerialCmd that takes a port (string), a serial_cmd (ArrayBuffer), and a ...
0
votes
0answers
95 views
How do I compare an array value (e.g. [0]) to a numeric value?
I have this code:
void loop()
{
if (rfid.isCard()) {
if (rfid.readCardSerial()) {
if (rfid.serNum[0] != serNum0
&& rfid.serNum[1] != serNum1
&& ...
0
votes
1answer
147 views
Controlling Arduino From NodeJS
I'm trying to control Arduino from NodeJS.
I have already tried Duino, I get that the device is ready, and the debugger shows that the commands were sent succssesfuly to the Arduino, but nothing ...
0
votes
1answer
70 views
Highchart xAxis “6 Hours Ago” ,“5 Hours ago” and so on. while my chart is updating
I am using a JSON to fetch the data to my database. Is there a way the xAxis turn to 6 hours ago, 5 hours ago, 4 hours ago, 3 hours ago, 2 hours ago, 1 hour ago while the chart is updating? Because i ...
0
votes
1answer
185 views
Matlab to HTML5 WebSocket
I need to talk to a matlab script via web sockets from a web page. In my opinion this the best approach as I will not have to pool for http ajax requests. Matlab is controlling an arduino board so ...
0
votes
1answer
1k views
Reading Serial Data from Arduino with Python
I'm working on a little project using the MaxSonar EZ1 ultrasonic range sensor and Arduino Diecimila.
Using the MaxSonar playground code, I have Arduino writing the number of inches to serial every ...
1
vote
3answers
551 views
node.js serialport events stop working after reconnecting to port
I'm using the serialport2 library for node.js to receive serial data from an arduino. This works like a charm but every now and then the pc running node, decides to deactivate the usb ports due to ...
0
votes
0answers
136 views
How to share JSON among multiple Highcharts on one page?
I am using Highcharts, with 4 gauges on the page, using setInterval to get JSON data feeding the charts.
I have it working by polling once per gauge. But thats 4 times as much polling / bandwidth ...
0
votes
1answer
58 views
Arduino and Java
My arduino is giving output according to this program - part of which is
Serial.print("A");
Serial.print(sensorValue);
Serial.print("B");
Serial.println();
Serial.print("C");
...
-1
votes
2answers
3k views
How to connect to Twitter with API 1.1 possibly using OAuth authentication?
I have made a website + a project in Arduino that both fetches tweets from my own Twitter account and acts according to these. Today the Twitter API changed to version 1.1 and now my website doesn't ...
0
votes
2answers
426 views
JavaScript Ajax request not working in Firefox and Google Chrome, but it is okay in Safari
I'm using some JavaScript to send an Ajax request to an Arduino webserver and change the HTML on a webpage.
In Safari this has been working great, but when I try to load it in Firefox and Google ...
0
votes
0answers
328 views
send temperature from Arduino to browser (webserver)
I'm using the ethernet shield, with the TinyWebServer lib
I want to send a value (temperature) from from arduino to my browser. (I can read the index file)
here is the part of the arduino code. ("20" ...
0
votes
0answers
118 views
nodejs - Serialport2 error message “[Error: Disconnected] [Error: Opening \\.\COM5: Access denied]”
I am using Windows 7 x86 with serialport2 /nodejs. Are there any good code example for opening - writing - closing serial COM ports?
I have a little problem, I send an array named "data" over ...
1
vote
1answer
220 views
Reading data from arduino with nodejs and socketio
I have this simple code that I'm running in arduino
char inp;
void setup(){
Serial.begin(9600);
}
void loop(){
while(Serial.available()>0){
inp = Serial.read();
Serial.print(inp);
}
...
0
votes
2answers
503 views
Bad data received from Arduino serial while reading from analog port
Maybe this is just a nonsense, but it's driving me crazy. I'm trying to read one analog port in Arduino and send the value through the serial port to JavaScript using node. When I show the data in the ...
-4
votes
1answer
79 views
Can I insert a HTML file containing scripts and styles into another HTML (on client side)?
Can I insert a HTML file containing scripts and styles into another HTML (on client side)?
I will try to elaborate a bit so it's clear what I wish to do... First of all, this will be served by an ...
1
vote
1answer
255 views
Arduino communication stopped working
I am running a small WAMP server with Apache 2.2.22 and PHP 5.3.13. My problem is that my JavaScript/Ajax Code is no longer sending the $POST to my external PHP file which is supposed to then send the ...
1
vote
1answer
802 views
Flot not working with the node.js
I have a node.js server script which reads the data from serial port using web sockets and displays the data on a browser. The server script is absolutely fine as it displays correctly realtime data ...
0
votes
4answers
637 views
How do I use a toggle button?
I'm working on an Arduino project that uses the Ethernet shield. The Adruino connects to my laptop (server) and reads a PHP file telling it to turn on or off a relay.
The user interface is an HTML ...
7
votes
1answer
157 views
How to show sensor output using Dino and Sinatra?
I would like to show on my page output from one of my sensor(moisture) connected to Arduino.
Following script, gives me some value(number) every one second.
require 'dino'
board = ...
2
votes
2answers
140 views
How can I get a browser to output through a non-screen channel?
Google Chrome and Firefox are starting to support the Gamepad API, and I've got code that turns a stock Arduino into a customizable gamepad (UnoJoy!), so you can use it to get data from an Arduino ...
0
votes
0answers
182 views
Convert image from Arduino to JavaScript
I have done a system to read an image from an SD card on Arduino and send all these bytes to a Node.js server.
This is an example of the first row of the GIF image (I will use a JPEG)
...
0
votes
2answers
225 views
Control push JavaScript commands to a website through Arduino
I have an HTML5 ping pong game. You can check it out at (http://pong.hackrdojo.com/). How do I make a controller, where I can use a breadboard interface with two buttons all linked to an Arduino ...
0
votes
1answer
150 views
chrome.serial not available in Chrome packaged application
I'm building a Chrome packaged application with an Arduino serial connection. Similar to what was demonstrated in the latest Google I/O, The Next Evolution of Chrome Apps by Erik Kay, and Mihai ...
4
votes
2answers
158 views
Trigger a mac application to start from a sound or other physical (real world) event
Can anyone offer any advice on options in getting real world events, ie sound, visual, motion, to trigger events on the mac?
The simplest event I think might be sound.
I simply need sound of a ...
2
votes
1answer
228 views
Building a simple Javascript and HTML server
I am trying to build a simple server to communicate with Arduino and store information recieved from the Arduino. I've established the Arduino server connection using Node.js and Node-serialport, my ...
4
votes
2answers
882 views
Running a local server with javascript
I want to create a simple Javascript program with a HTML interface. The program will run in Chrome. I will also use node-serialport and Node.js to comunicate with an Arduino. I have a HTML and ...
0
votes
1answer
409 views
Getting Spotify user listening history sorted by month?
Does libspotify allow getting the listening history of a user in the same fashion it is displayed in facebook? eg. May 2012 Top Tracks. How? If not, is there a workaround to pull this data from users ...
3
votes
1answer
544 views
HTML/Javascript: Outputting keyboard strokes to URL Parameters
I'll first explain my overall goal and then the question itself.
Overall Goal:
To send commands to an Arduino board that is connected to a router. A computer will be connected to the router over ...
1
vote
2answers
243 views
Share C variable with Javascript on an Arduino
I'm programming a simple web server on an Arduino. I basically send HTML, CSS and Javascript to a client through a method in C code. Now I've come to need a C variable in a Javascript if-case, and I ...
1
vote
4answers
634 views
C: string manipulations and Arduino
I'm learning to program in Arduino and, as far as I understand it, it uses the C language (please correct me if I'm wrong).
I'm a senior in JavaScript and PHP, and now I'm having hard time with ...
0
votes
2answers
216 views
How to like a page on fanpage on facebook without a mouse
BACKGROUND
I'm doing an interactive art project for school.
PROCESS
For this project the last step is to go to a facebook fanpage and like the facebook page.
ASSUMPTIONS
I'll be using Java to open ...
2
votes
2answers
1k views
How can I delay the submission of a form?
I have a web site that uses submit buttons to send commands to a remote microprocessor. If a user clicks the submit button too many times in a short amount of time, the remote microprocessor and ...
0
votes
1answer
288 views
Need help Arduino/Processing for Buzz Wire Game! [closed]
I just need some help on starting the code for Arduino and Processing in the Buzz Wire game! We want a LED and buzzer to light up and ring when the player touches the uninsulated wire.
We are not ...