Archive for the Arduino Category

Arduino Killer!

Posted in Arduino, ESP8266 on February 20, 2016 by asteriondaedalus

And voila!

arduino killer

ESP8266 based. Uno form factor.  $6!!

Now along with something like this for $4 …

relay shield

You can have an OpenSprinkler killer for $10 instead of $155!!!

Still my old BlackWidow is fine for my home use but I have a backlog of family and friends wanting a wireless sprinkler controller.  Just takes a pickoff of the 12volt AC used to drive the sprinkler valves to create the voltages for the board.  A rectifier and few capacitors into a voltage regulator et cetera.

Goodbuy OpenSprinkler *sniff* so sad to see you go.

Phew!

Posted in Arduino, Wifi on May 17, 2015 by asteriondaedalus

Niggly problems when setting up the Blackwidow to talk to home wifi router but, go figure, I wasn’t paying attention. When setting ssid[] and security_passphrase[] arrays one need use you local ssid and passphrase for your router as opposed to the ssid set in the code example AND remember to set “security_type = 3” for WPA2 – obviously had a newbie moment 😉 The other curl ball thrown is that the board seems to take a couple minutes to connect to the router (into which does not appear to turn up on any site I have perused).  I thought it had not worked but McAfee piped up (after a few minutes) and warned “192.168.0.112” had connected to network (which was the static IP address I gave the Blackwidow).  Once Blackwidow is connected to router it appears more reactive. Next step to integrate in the Arduino mqtt library.  4 relay shield on order from China ($6) and I have already cracked open the current watering controller to look at swapping out the signals to the new board.  They are only 12volt signals with a common to all watering solenoids – too easy drill sergeant!

POST SCRIPT

Go figure, some work to port MQTT library as it uses Ethernet library (or Wifi library) not compatible in first instance with WiShield library for BlackWidow.  However, I do note deep in the Client class used in the MQTT client we have buffer marshalling for sending on sockets.  Problem is the BlackWidow examples are using UDP.

One interesting discovery however was the way BlackWidow example built the UDP example it was not intuitive but it clicked they are using virtual methods in the library for user to define.  More than that it introduced be to PT_THREADS for Arduino.  A neat way to do limited threads on Arduino.

I may dabble a little with a MQTT port I can simply stick with HTTP or UDP examples (we are only talking about toggling 4 relays after all).  OpenHAB can work with HTTP or UDP (as well as MQTT) so no show stoppers.

PT_THREADS are, however, interesting.

In hind sight

Posted in Arduino, Nostalgia, Wifi on May 15, 2015 by asteriondaedalus

Looking at it realistically, OpenSprinkler hardware is likely a no-go for me.   Why?

When I looked at it rationally, I have the skills and the technology and I have also lamented the “maker” mentality before (buying things and plugging them together rather than designing and constructing).

Besides the $80 for the OpenSprinkler hardware is about what I paid for the Blackwidow board, a few years ago now.  I used the Blackwidow on a now decommissioned project – so it is sitting there wanting to be used.

BlackWidow

Use me !

 

Why waste it?

Besides a four relay shield is in the order of $6 instead of $80.  I have found a mqtt library for Arduino so will need to integrate that with the wifi (rather than ethernet) library etc.

I might even be able to mod the OpenSprinkler software to control relays via mqtt, instead of driving GPIO pins directly.

Yes, one could go NodeMCU and a $4 four relay board and get a controller under $20, and I will for extensions to the irrigation system.  I just need to get the Blackwidow out of the parts draw doing something useful.

 

Remote wireless TENS

Posted in Arduino, Wifi on December 21, 2014 by asteriondaedalus

For a Zzzzzaappppppping good time.

TENS

TENS

I bought a couple of YellowJacket (Arduino compatable with Wifi built in) yonks ago.  I do that 😉

So I thought I would dust one off to build a wireless controlled TENS gadget.

I came across a 555 based timer TENS circuit and it looked like a fun distraction from my Dissertation (an hour here or there don’t you know).

Zzzzapp!

Zzzzapp!

The Yellow Jacket looks like the ideal solution because it has on board power regulation including outputting 5V and 3.3V.

The 5V output will go to the emitter (the “arrow”) on the transistor to drive the 1:10 transformer.

It turns out the RS-232 connector I got for my BBBs actually is a pin for pin match for  “JP1” that are on the YellowJacket.  Down to the regulated 5V required on that connector (the I/O on the cable is 3.3V which seemed to work fine).

The YellowJacket has a “raw” power input of 7-44V would you believe so I will solder a 9 volt battery connector to it to drive it.

YellowJacket pinnouts

YellowJacket pinnouts

The one “trick” was all the docco claimed the YellowJacket was an “mini” as far as the programer was concerned.   Using Arduino 1.0 this did not work.  Nor did the “Uno” setting of some of the knock-offs (Chinese or otherwise).  Luckily, a little playing around and it uploaded fine with “Arduino NANO w/ Atmega328”

So, a few experiments with blinking lights etc. and all seems go for working on the pulse driver and webserver elements.

Now, I note you can still get these as Chinese knock-0ffs but they are about $50 seems over the top.  Although, other more recent gadgets might still be upwards of $50 for the MCU (Electric IMP for example).  Spark Photon is a likely good choice as it is only $20 – mind you, you wont need 120MHz for a TENS unit.  RFduino maybe.

Now that’s an idea!

Posted in Android, Arduino, Sensing, Vision on May 2, 2014 by asteriondaedalus
Cyclops!

Cyclops!

Feast your eyes!

The beautiful accidents right.

The GripGo base, once I ripped the suction cup off (broke off without actually any resistance) was a couple of millimeters in diameter larger than a circular “ledge” on the back of the indoor rover so a liberal smear of epoxy and voila!!  An adjustable mount for my old Samsung SII.

Do notice the omnidirectional lens on the top.  That is a “spare” that turned up.  Cost $60 but came with an old knock about bloggie which I will find some other use for.

Unfortunately the second bloggie fell through, the poor dear at the other end of the interweb was too dull to know how to mail something interstate – oddly, this one comes from twice as far away.  Can’t fathom it but there are still Luddites around.

Anway, I have two of these lens as well as the “periscope” version (that I am waiting on the USB catheter camera).  So, plenty if you ask me.

I will need to get a student copy of Matlab to use a fancy calibration library which looks like it lifts any distortion out of the image once it is unwrapped.  Even if that falls through, a simple wall detector will allow this beast to avoid bumping into walls – we hope … mwahahahahaha!

Recall the phone runs S4A and Python so while the application will be in C++ or Android it can ping a socket with steering directions – or that is the plan.

Beauty is that the adjustable holder allows other configurations when other algorithms and vision approaches are being played with.

Nope, same Rover.

Nope, same Rover.

Arduino on Steroids!

Posted in Arduino, FORTH is it dead or isn't it?, FPGA on April 29, 2014 by asteriondaedalus

http://www.cloudx.cc/

What can I say?

I put my name down for funding it at INDIEGOGO.

The project brilliant.  Done to an Arduino IDE mod to do multi-threaded work.

It is up there with XMOS and Parallax Propeller.

Now, I wonder … you could probably use this technique to have a multi-threaded FORTH engine.  Not as many “cores” as Chuck Moore’s G144A12 Chip but likely more practicable given not every one will need 144 cores for practical projects.

I guess optional cores are:

  • J1 and as implemented on the gameduino (XILINX).
  • myforthprocessor at OpenCores – really BIG and comes with compiler.  Core includes floating point and it appears already has multi-core option (Xilinx).
  • HIVE at OpenCores – already has 8 threads (Altera but needs a bigger chip than on our experimenters board).

Certainly, as far as the cloudx project is concerned, there may be impetus for a cut down version that could be used (4 AVR MCU/threads say) without as much companion real estate as a APM-Multithread.  Just saying.

POSTSCRIPT

Dead project.  Chap couldn’t get the backing.  Oh well.

Occum-pi for Arduino??

Posted in Arduino on April 27, 2014 by asteriondaedalus

Gag!

I am in heaven.

Remember I talked about coding for transputers in another life.

Well, there are a team that have developed occum-π for the Arduino – Transterpreter.

Expect, it burns about 20k for the occam interpreter when running the LED blink example.

That’s up there with Windows needing 250K (at least) to display hello world (in contrast its about 30 bytes in assembly).

Oh well. Interesting toy – and still 100k of “room” on my Arduino Mega board.

M M M M Mega!

M M M M Mega!

 

And go figure, some wild people have written a uav system in occam-π for Arduino.  Read about it here.