Questions tagged [node.js]

33 questions
3
votes
1 answer

NodeJS (Galileo-IO) + Arduino sensor library

I've done some basic apps with NodeJS firmata where I can connect to my Arduino Uno and do the basics like reading a pin or doing a servo write. I'd like to go further and play with some different sensors from vendors like Adafruit. Many such…
Gregir
  • 161
  • 1
  • 6
2
votes
0 answers

How to reset an Arduino with node-serial?

I was reading about using an Arduino with a Makefile. In the Makefile-Arduino project there is a reference to the Python serial library required to reset the board. Looking into the usage of PySerial to reset the board, there is some reference to…
poseid
  • 325
  • 1
  • 4
  • 11
2
votes
0 answers

getting simple socketIO server to work with MRAA library on Edison

I spent the last week working with the CylonJS framework on my edison using a Maxbotix sensor. Everyting works with a web client on the front end. However at the last moment I can't get the edison to talk to an existing AIR client which I must…
user2005121
  • 121
  • 2
2
votes
1 answer

Sending string over serial to nodejs app. Why does it get chunked?

I'm sending a string from my sketch over Serial port as follows: Serial.println(F("Found ILI9341 LCD driver")); On the other side, I have a nodejs app using the serialport npm module, with something like this: var SerialPort =…
jotadepicas
  • 326
  • 5
  • 13
2
votes
3 answers

How to correctly read a string from Arduino serial port?

I'm trying to communicate with my Arduiono UNO via USB serial port, more precisely I'm trying to read a string like 125,0, I know it's full of article out there about this, but belive me I've tryied more or less everything, now I got a NODEJS server…
FabioEnne
  • 233
  • 7
  • 19
2
votes
0 answers

Serial Communication to Arduino with Node.js

I ran into some strange problems while trying to send data from my Node.js Server to my Arduino. My goal is to transfer an Int to the Arduino Nano and display it on a LCD. So far I managed to connect the server with the Arduino with the help of the…
Centro
  • 21
  • 2
2
votes
0 answers

How to use console.log message from nodejs server, to control led pin 13?

I want to use Arduino Yun as a client, that connects to my nodejs server, receives a message from nodejs and then change led pin 13 on/off according to the message send. I have this example of a nodejs server: var express = require('express'); var…
Tommy Otzen
  • 123
  • 1
  • 8
1
vote
0 answers

POST ESP32 image buffer using HTTPClient to Node.JS API

I'm trying to post the buffer generated by the ESP32 camera to my personal API service I have built with Node.JS. The post gets sent successfully. I have yet to test it on large image (higher resolution). I'm using a FRAMESIZE_HQVGA, // 240x176…
Johnny boy
  • 121
  • 2
1
vote
1 answer

Why when I try to connect my ESP8266 to my node sever in my localhost it keep getting disconnect and connect?

I think the issue is within the library because I have try to implement this code according to the tutorial that I found in YouTube Youtube. The discussion of this tutorial is the first they implement the node js server for listening to specific…
Ly Bunvath
  • 11
  • 1
1
vote
1 answer

Node.js cannot recognize characters from the serial port

The following script prints everything fine, it recognizes integers from the serial port, but cannot recognize characters. The if statement does not work with characters. I have tried both == and === in the if statement var SerialPort =…
1
vote
1 answer

Arduino Nano/Uno and js sketch compiling/uploading from browser

I need to compile generated source code in js runtime then upload it to my device. Compiling: I have found arduino-cli Uploading: There is only avrgirl but it doesn't work in browser. What should I do?
caxapexac
  • 111
  • 4
1
vote
0 answers

Is the johnny-five library and javascipt good for Arduino projects?

I am new to Arduino. I just have my Arduino UNO kit and started to do some small projects with node.js and the Johnny-five library. My question is why there not many content about javascript+Arduino in web, and the last news on Johnny-five website…
Qui-Gon Jinn
  • 111
  • 2
1
vote
1 answer

How to HTTP post a data to Node express API from a Arduino esp8226?

I am HTTP posting a data to this web API https://morning-cliffs-85779.herokuapp.com/api/users from an Arduino connected to esp8226. I am using the wifiesp library to HTTP_POST data. The REST APIs are hosted in Heroku. When I post it the Arduino…
1
vote
2 answers

Keep on getting scandone

I have a node server with express and socket io behind nginx reverse proxy at AWS. I am try to connect remotely from my NodeMCU esp8266 through websocket io client to my server using WebSocketClientSocketIO (unsuccessfully). I am new and don't know…
Zeni
  • 111
  • 4
1
vote
1 answer

Decimal numbers sent over Serial get split and sent over multiple ticks

Here is my Arduino sketch: #include #include #include HX711 hx(9, 10, 128, 0.002229); LiquidCrystal_I2C lcd(0x27,16,2); void setup() { Serial.begin(9600); hx.set_offset(-9635); lcd.init(); …
J Edwards
  • 11
  • 1
1
2 3