-
Thanks @JumJum, the tutorials are always appreciated!
-
-
I've thrown together a module for talking the MySensors serial protocol: https://github.com/the1laz/Espruino-MySensors
MySensors is an integration platform for connecting sensor networks to your home automation hub. The original use was for RF24L01 mesh networks connected through a gateway node to some sort of home automation controller (openHAB, Vera, etc.) through a standard serial API using standard sensor and data types. I've found it handy for standardising messaging to/from my microcontrollers, so I've started porting it to Espruino.
Since I use wifi for all my Espruino sensors (rather than something non-ethernet), I've combined the gateway into the individual nodes so that each will talk directly to the controller. There's some basics in the readme and an example for TCP, as well as another module for all the enumerations (saving space in the main module, in case they aren't needed).
-
This reminds me of remote I/O for industrial control systems, some kinds can manage their own logic when the main processor gets disconnected. Very cool seeing this implemented on inexpensive microcontrollers and open source, user-friendly software.
Just having a look at your code, it shouldn't be too hard to store the node list in flash so as to be able to reload it without the connection to node-red.
-
Looks like an aluminum: https://www.brit.co/bartendro/
Voltage ratings that low are quite common actually, the voltage rating probably drives the price more than the capacitance. I've seen 600V capacitors at $100 each that are only micro Farads.
EDIT: Also, *rages at use of RJ45 plug for non-Ethernet interface* -
-
Awesome! I'm glad you managed to get in on the nrf52, the nrf51 is a bit squishy for most projects. I especially like the effort you've put into the form factor and enclosure, it'll be great for people to start using immediately, perfect for a Bluetooth board.
A couple of questions - why did you go with the individual leds over something like a neopixel? Simplicity + ease of use? Also, what is the capacitive sensing that's mentioned?
-
@AlexOwen I'm pretty keen to try it out, but I just finished building a 3D printer so... I might not get to it right away. :)
EDIT: Printing enclosure parts for sensor nodes running Espruino!
-
@Rovale since you're "building" the module, maybe you'd be able to generate two modules by excluding some features, a basic one and a full-featured one. Basic is pretty much publish and subscribe, doesn't do anything extra like Last Will, full feature does everything.
-
-
-
Wow, CSS(D) is pretty cool. It solves an issue with the hone home automation hub I've been building in node-red (selections for ui groups) in a very neat way. I might give this a try.
Have you used node-red at all? It's very good at making it easy to make connections between network and hardware protocols, but it's up to you to create the core that it's all talking to. Ub.js seems like it might make for an excellent core for my home automation stuff, an improvement over what I've patched together myself.
-
-
@hygy - thanks for this, definitely interested in giving this a go with espruino. Nextion + Espruino on ESP8266 + voltage regulator = instant tiny cheap wifi HMI running javascript.
-
-
-
@AlexOwen how well is the module working for you? I gave it quick go on the ESP8266 and it was quite inaccurate. Just wondering if it was just me?
-
Just put in a donation, glad the link is up. :) Espruino is awesome for my needs, I'm using it on a Nucleo board to test Arduino shields, I've got it in an ESP8266 board for a simple limit switch, my own stm32 home automaton boards and now I'm looking at using it in a Bluetooth watch. Espruino is making everything easier and faster, so I'm glad for the chance to chip in to support it! Thanks for everything @Gordon!
-
@Gordon I'm looking at trying to build my own watch using an nrf51822 module ( this one in particular).
I got the Microbit firmware onto an nrf51822 board that I've got using your script and managed to get my phone connected via web Bluetooth (no luck on Windows or ubuntu). From what I can tell, most software "pairs" with a Bluetooth device before firing up comms, but it looks like this uses an unsecured serial interface. Do you have any plans to expand on the Bluetooth capabilities for Espruino on this chip? The smartwatch app I'd like to use with it seems to require pairing in order to open up a serial port.
-
This new tool creates fpga logic in JSON before turning it into Verilog. Getting closer? http://hackaday.com/2016/02/23/icestudio-an-open-source-graphical-fgpa-tool/
I suppose it wouldn't be so hard to fire off JSON to a server to transform into a bitstream, kind of like compiled code on the espruino.
-
@DrAzzy good point, especially with the holes they have.
-
Just noticed the WiPy, a wifi micropython board. Might be the closest competition to an espruino wifi board, it could provide ideas for what not to do and what to beat. This is already about 25% smaller, so good start!
...also, just had the thought, there's always the option of installing espruino on both processors. Not something you normally want to do, but I do know that there are often people wanting to program the usb chips on their Arduinos. Could it be worth breaking out pads for unused pins for both chips underneath the board?
-
Looks like they've put together a page for choosing boards:
http://makezine.com/comparison/boards/With each one getting a "review":
http://makezine.com/product-review/espruino/
Basic specs that they could've pulled off the website, and a zero fanfare statement that it runs javascript. Not very classy Make. :(
-
Updated to support mqtt (as well as serial/tcp socket), changed the functions around a bit to be neater.