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
399
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 ===...
1
vote
1
answer
349
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 ...
0
votes
1
answer
61
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
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
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 <...
1
vote
1
answer
119
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
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 ...
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
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"...
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
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 ...
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 ...
0
votes
1
answer
858
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
...
0
votes
1
answer
249
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
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 ...
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 ...