Questions tagged [node.js]
The node.js tag has no summary.
33 questions
1
vote
0
answers
914
views
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 ...
1
vote
1
answer
490
views
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 ...
1
vote
1
answer
400
views
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 ===...
0
votes
1
answer
415
views
How to transmit data from Arduino to Raspberry Pi?
I am planning to build a network with five Arduino Mega devices, each of which will collect data using multiple sensors. Each Arduino will periodically transmit the sensor data to a gateway Raspberry ...
1
vote
1
answer
350
views
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 ...
1
vote
0
answers
126
views
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+...
0
votes
1
answer
62
views
Not sure which Arduino to pick [closed]
Is the Arduino Uno the best one to purchase for a complete beginner?
I eventually want to get into building Nodebots since I already have experience writing Nodejs web-based applications.
Or should ...
1
vote
1
answer
2k
views
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 ...
1
vote
2
answers
2k
views
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 ...
0
votes
1
answer
673
views
SerialPort Node.js stuck in 'Error'
I am trying to get my Arduino to send data to my computer using Node.js Serial port. Everything compiles, my Arduino is working well and sending data in the serial monitor, but the program always goes ...
0
votes
1
answer
1k
views
arduino nodejs serial data chunked and not in synch
I'm trying to get an arduino sending data to node but with no success.
I'm connecting to an ar-drone 2.0 as in https://gist.github.com/maxogden/4152815
Here is my Arduino code:
#include <...
0
votes
1
answer
2k
views
How to send IR data from Arduino to USB-TTL
I have a led receiver KY-022 and led emitter KY-005, I also have a PL2303 (USB-TTL). This is the code of the issuing LED:
#include <IRremote.h>
IRsend irsend;
void setup()
{
Serial.begin(9600)...
1
vote
1
answer
120
views
Decimal numbers sent over Serial get split and sent over multiple ticks
Here is my Arduino sketch:
#include <HX711.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
HX711 hx(9, 10, 128, 0.002229);
LiquidCrystal_I2C lcd(0x27,16,2);
void setup() {
...
1
vote
1
answer
1k
views
Sending data to Arduino Via Nodejs: Arduino does not echo back the data
I have the following sketch that runs in a arduino UNO:
/*
* Copyright 2018 Dimitrios Desyllas
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...
1
vote
1
answer
1k
views
ESP8266 cannot connect to an existing network after using AT command
I followed this tutorial to connect the ESP8266 to a wifi network using AT commands. I used the below schematics (without the connection between ESP's CPIO 0 and Arduino's Ground):
After that, I was ...
0
votes
1
answer
1k
views
Arduino Serial data communication with NodeJS
I am using an Arduino Uno and a DTH11 temperature sensor to read temperature and then send that value to a computer via the serial port.
A NodeJS application is running on the computer and captures ...
2
votes
1
answer
6k
views
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 ...
0
votes
2
answers
327
views
Data not updated in real time
In my recent project, working with JSON and Arduino. Till now, I am getting proper JSON data and add this one into Arduino data. But here I face one problem. My data are not updated in real time.
For ...
0
votes
2
answers
3k
views
How to get different parsed JSON data?
In my recent project, I have to parse incoming JSON data in Arduino and I successfully did it. But it is only for one constant data string.
For example, if my incoming JSON string like:
{"TPS":"0.40"...
1
vote
2
answers
2k
views
Arduino Nano, nodeJS serial
I tried to make a 2 way communication between my Arduino and a PC(running linux mint) using NodeJS:
My Arduino code:
void setup() {
Serial.begin(9600);
}
void loop() {
if(Serial.available()) ...
0
votes
1
answer
2k
views
Error: Cannot find module 'serialport'. node.js, Arduino Yun
I carefully followed Andy Sigler's tutorial on how to setup node.js on Arduino Yun. But I'm getting this error "Cannot find module 'serialport'". my node.js file is in mnt/sda1/arduino/node folder. ...
-1
votes
2
answers
251
views
SocketIO Arduino TCP Port ISSUE
Initially I was sending sensor data to NodeJS using socketIO and this worked perfectly. I had to add a function to control an RGB LED using this. This also works but I'm unable to perform these two ...
1
vote
1
answer
2k
views
How to programmatically upload an Arduino sketch generated by node.js (electron) or from browser?
We are trying to make an app that generates an Arduino sketch (.ino) using Google's Blockly and node.js, and uploads it to Arduino.
Even after searching a lot, I am unable to find how to build and ...
2
votes
3
answers
5k
views
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 ...
0
votes
1
answer
625
views
Posting data with ESP8266 module? [duplicate]
I have an ESP8266 module attached to an Arduino Uno that is connected to my local network. On the network, at address 192.168.1.13, I have a nodejs/express server running on port 3000. How would I go ...
2
votes
0
answers
1k
views
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 ...
0
votes
1
answer
859
views
Help with socketIO Example
I'd like to get a TCP based connection from an arduino to a node.JS server. I found an example, I've tried to run it but its throwing the errors below, would appreciate any help.
Error Messages
...
1
vote
1
answer
1k
views
Arduino Yun used as Wi-Fi hotspot
I use for a project an Arduino Yun with Node.JS + socket.io to provide interactivity between a smartphone, driving through a webpage different devices.
I would like to enable this service for ...
0
votes
1
answer
250
views
To what extent is Javascript used in robots? [closed]
I originally discouraged my friend against the use of Javascript in his robot project because I didn't know any use for Javascript outside of web developement but then I saw this book on amazon. Since ...
2
votes
0
answers
593
views
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 ...
2
votes
0
answers
191
views
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 ...
3
votes
1
answer
357
views
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 ...
2
votes
0
answers
310
views
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 ...