How to run Node.js on esp8266 (Nodemcu dev board)? - node.js

I am trying to connect Apple homekit to nodemcu board, I found a tutorial which works on my computer, but I am wonder if there is any way to load and run Node.JS on a NodeMCU board (ESP8266)?

You can run Espruino on it. I have the HiLetgo NodeMCU ESP-12E Module and was easily able to load the firmware.
Download and install flasher https://github.com/thingsSDK/flasher.js
Press and hold the flash button press the reset button once. It will flash once.
Open up flasher app and flash the firmware for Espruino.
Unplug the esp8266 and plug it back in
download the web ide for Espruino https://chrome.google.com/webstore/detail/espruino-web-ide/bleoifhkdalbjfbobjackfdifdneehpo?hl=en
Change the baud rate Settings --> Communications --> Baud Rate 115200
Connect and enjoy!
Some samples to try out
https://github.com/mertenats/NodeMCU-and-JavaScript

I think you're confusing nodemcu, which is a firmware for the ESP8266 boards that interprets the language lua, with the javascript runtime node.js, which runs on computers.
So, the answer is you cannot run node.js on an ESP8266.

Related

Bluetooth Firmware Update

I have a BLE module that i'm trying to update the firmware in, but having a lot of problems connecting the recommended update software (ISupdater). All I get is 'connect failed' message. There seems to be no troubleshooting information available, so I hope that someone has run into the same issues and solved it.
For the hardware setup, I'm connecting to a PC via a USB-USART serial adapter board. I have the 3.3V, GND, reset switch, mode switch, USART connection from the RN4870 BLE module connected as per the microchip connection diagrams (https://microchipdeveloper.com/ble:rn4870-app-example-fw-upgrade). I have verified many many many times that my connections are correct.
Connection Diagram
To test the BLE connection and data transfer I have mobile devices (iOS and Android) with the recommended apps (SmartData, mBIoT). I can see the BLE broadcast in the bluetooth lists, and I can connect to it to use the apps.
For the RN4870 module, I'm able to connect to CoolTerm software to test that I'm getting communication between the terminal and a mobile device. I'm able to send and receive data on the CoolTerm terminal, and on the mobile device apps, so that suggests to me that the USART adaptor is working correctly, and so is the BLE module.
In CoolTerm, I'm able to enter the CMD mode for the RN4870 module to set and read settings of the module, so I can check and set the baudrate to the default 115200.
If I use a BM70 module (which is the same hardware as RN4870 but different firmware), i can't enter any CMD mode, or do any sort of reset. The data is still able to be sent and received, so that confirms the baud rate is correct.
When I attempt to connect to either BLE module using the ISUpdate software that is recommended in the update steps to use as the firmware updater, I'm not able to connect to the module to update the firmware. I've tried many times to get the software to connect, many different ways, without success, and it's frustrating to no end.
I've updated the MCP2200 drivers to the latest ones from the microchip website, as well as using the latest versions of the CoolTerm and ISupdater. I've also tried previous versions, but still they all have 'connect failed'
ISupdater Image
has anyone got any solutions to the issue?
PC: Windows 10, 64-bit
BLE Modules: RN4870, BM70
CoolTerm Version: v1.8.0 (build 861)
ISUpdater Version: v4.0.0.207
IS187x_102_BLEDK3v1.11_UIv1.01 for Windows 10
Mobile Apps: SmartData, LightBlue for iOS, LightBlue for Android, mBIoT
Hmm, well it turns out that the USB-USART serial adaptor (although confirmed to be working correctly) seemed to be the problem.
At first, I only had the 1 adaptor, and I had to borrow a different adaptor. After swapping this FTDI232 USB-USART Serial adaptor, the connection was made first try, and I was able to update the firmware. I have now purchased a new adaptor.
So, if you are having the same trouble, try using a different adaptor.

Reading Bluetooth data and command (Raspberry pi 3)

I am currently working on a project that make me control media center and a few domotic parts in my living room.
I have connected on my raspberry pi 3 a NAS, my Spotify account (with hifiberry, controls to close my amp, my PC and a few lights...
At first to control it all I programmed a web server that I can access on my phone. That made the job but it is not completely user friendly since I have to have my phone go to the interface and do whatever I have to... And I'm not a web designer 😁 it's far from perfect!
I've made some research and I have decided to build a bluetooth remote control (raspberry pi 3 do have Bluetooth low energy).
Since nothing exist as I want, it is going to be a custom one made with Arduino mini and hm10 module.
But I'm stuck on the raspberry part!
How can I read the Bluetooth data send by my remote and launch scripts according to the command sent?
Via a serial listener of some kind?
Yes, in fact, you should use a serial port to connect your pi with Bluetooth module.
You then use software input information for your purposes, but you must first implement the hardware and hardware interface first.
You can build application software with the Python programming language.

Arduino light blinking not working after stopping node.js program

i am new in arduino, but i do have knowledge of Node.js.
recently i brought arduino uno board. i have tried basic/hello world program of arduino which is LED light blinking, for that i am using jhonny-five.js.
i have plugged arduino board to my laptop, then i uploaded firmata to board and then i run node.js program on my laptop it is working fine, LED light is blinking. every thing is working like charm.
but when i stops the node.js program then LED light stop blinking. basically i want to do that when i just power-up the board, it should run LED blinking functionality.
right now i need to plugin device, then run that node.js program. this way it is working.but is there any way where i just plug arduino board and it automatically runs LED blinking functionality without running node.js code on my pc.
The Firmata library is exactly for receiving commands over Serial port. So you can run code on your computer and commands that must be executed in Arduino are sent there. But without that program, it's just waiting for commands, so it does "nothing".
If you wan't stand-alone program, you have to use Arduino IDE and upload code directly.

QNX Neutrino sound card not working

I have installed QNX 6.4.0 neutrino on an unused x86 box. It's all working fine, I can run my test code on there via the network connection (qconn).
However the sound does not work. When I click the audio settings I get an error, similarly if I run my code it can't find an audio card.
I had an on-board sound card (built-in). Running io-audio, I was not able to detect it. So I went a purchased a new off the shelf PCI sound card (CMI-8738), this also failed to be recognized by QNX.
When I run "pci -vvv | less" I am able to see both audio devices are connected (and I can see in the BIOS as well).
I read somewhere that I need to get some driver called deva-ctrl-cmpci.so, but I can't find that anywhere.
What can I do?

Testing Game Center's P2P Functionality over Bluetooth with the iPhone Simulator

I would like to run and test P2P connectivity over Bluetooth via Game Center (GKPeerPickerController). I own an iPod Touch with OS 4.1 installed and am trying to connect it to the iPhone Simulator running on my Mac via Bluetooth, however they are not seeing one another. Bluetooth is on for the iPod and the Mac. Is this even possible? If so, what am I missing?
I dont think it is possible, since bluetooth networking is currently not supported in the simulator.
check this for more detail..
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/GameKitConcepts/GameKitConcepts.html%23//apple_ref/doc/uid/TP40008304-CH100-SW1

Resources