Archive for the ‘Nodejs’ Category

I’m not really any further with any projects to speak of but it feels good to get some personal coding done. This weekend I’ve been playing around with the RFu-328 modules with SRF from Ciseco. I’ve been trying to get ChibiOS/RT running on them as I think it’ll be great to have a small footprint RTOS which runs on 8 bit micros. Task switching and sleeping during idle will do great things for my wireless nodes. So far I have the basic RTOS running with a thread for processing serial LLAP activity and then a semaphore to signal another to process the data received if it is all in order. Currently I am trying to move from the nodes sending data periodically to being able to be polled by the master. This will help prevent collisions as well as stop me from having to update the firmware on the nodes if I make changes to the system. So for now I’m trying to implement Pinata so I can control all the pins on an Arduino compatible unit. I’m not quite there yet but it’s a good start for a weekend. Code, as always, available on my github.

To get this going I’ve gone back and updated my EVE-node application with all the things I’ve learnt from doing the raspberry pi application at work. This application is nowhere near ready for everday use but if I keep cracking on it will be really useful very soon.

I was asked recently by our mechanical team at work to help them with a little project that involved building a pneumatic test rig to stress test our product. It was designed to do things like electrical stress tests like powering the device on and off a million times, mechanical tests like plugging and unplugging a USB cable and touching the touch screen. They had me a pneumatic.

The rig is powered by a raspberry pi with a PiFace for the relays and I/O. The interface is written in Node.JS with Angular for the frontend. It was a really great project (simple as it may be) and has been a great excuse to dive into node properly. It’s power continues to astound me and Angular’s bidirectional bindings really makes it easy to give powerful embedded projects a UI. It scales up really well to so you don’t have to worry about changing technologies later. The code is available on my github as usual.

I know this video is not very exciting but I think it’s cool. I’m also working on getting the low level SPI bindings working properly. More on that in a future post but node-gyp is incredible and node-ffi is so incredibly powerful for quick external library bindings.

Over the last week or so I have been playing around with getting Node.js up and running on my Raspberry Pi. I have found it to be a great learning experience and I’m pretty sure I will be using it for all of my embedded UI projects from now on. With the help of frame works like Express getting a static site up and running is really easy and makes communications really easy too. As I posted before I have been playing with these SRF modules to get some wireless comms going for home automation and I used python to get up and running fast. Afterwards I decided to use this as a opportunity to get in Node as I’ve wanted to try it out for a while but always need a project to apply myself to. This is still a long way off but have a look at the first working version More as I carry on discovering!