Archive for June, 2016

Differences between WeMOS and UNO pin numbering

Posted in Embedded, ESP8266, IOT, Lua, OpenSprinklette on June 29, 2016 by asteriondaedalus

The table below shows the mapping between the UNO pins, the pins on generic 4 relay shields, the ESP8266, and the WeMOS UNO clone for you info.

UNO Relay on Shield ESP8266 IO Index ESP8266 Pin WeMOS IOL/IOL1
PD4 4 2 GPIO4 D2
PD5 3 3 GPIO0 D3
PD6 2 4 GPIO2 D4
PD7 1 5 GPIO14 D5

 

OpenSprinklette

Posted in Embedded, ESP8266, IOT, Lua, MQTT, Networking on June 29, 2016 by asteriondaedalus

So, just got delivery of my 5 WeMOS uno clones …

 

arduino killer

… and 5 …

5v 4 Channel Relay Shield Module For Arduino

… we are now ready for OpenSprinklette!  All up AUS$11.00.  Only four channels but add a second unit for sum total of AUS$22.00!

So, a little work as we need to convert the 12volt AC to DC, should work a treat as the WeMOS board is happy to take 9-24V and also provides the 5V the relay board needs (apparently the 3.3V outputs should be okay *whimper*).

Now, since the “leak” (and the $3K water bill for the quarter) I will fit flow sensors to ensure flow is within expected range – so the unit can raise alarms.  Got 4 from Aliexpress for US$12 (or US$3 per sensor) which is better than the AUS$15 per sensor LittleBird is pinging people for similar devices.  Just needs a 3.3V zener and a 220 ohm resistor to adapt the 5V output of the sensor to the 3.3V inputs on the WeMOS.  Will build that onto a protoshield. (Anyone know what the connector type is from the photo below?)

flow

The NodeMCU provides NTP so I can run timers on WeMOS.  MQTT to the ODROID-W server (in the house) to pick up the watering times, weather off internet to decide upon whether or not to water etc.

A second two will be used for remote control of back and front yard lighting.  So remote ON/OFF and IR triggered to boot.

 

Part V of Lab 2

Posted in Altera Labs, Cyclone II Experiments on June 13, 2016 by asteriondaedalus

So a few things need sorting before I could program my Cyclone II board again.  The problem it appears was actually that the USB ports on the back of my PC had died.

So, what about the Quartus v OS story.

Same, same.

Quartus does not yet support Windoze 10.

So, what I had discovered still holds, that you cannot install the drivers as Windoze 10 disallows it.  Might be a way around it on a new install (I think you can turn driver signatures off in the BIOS).  In fact, on the Altera site, people are saying they are staying with Windoze 7 until their machines die.  The chap who designs the boards that I am using also is running a Windoze 7 box.  Seems unrealistic on Altera’s part to cause such a problem by not keeping up, at least with drivers.  A lot of this is likely “grey” market anyway.  Many manufacturers treat customers who have “grey” goods unfairly or even unethically – especially when you consider that the original manufacturer would have made their profits on the goods when they were moved into the “grey” market.

However, the quirk was as I had already installed the USB Blaster on the PC under Windoze 7 it has gotten around the block Windoze 10 places on unsigned drivers.  So, after a bit of swearing at myself for not catching the dead USB ports in the first place, all seems well.  I simply moved the blaster to the front USB ports on my PC.

I will still need look at setting up a Linux based version for my FPGA design as my PC is old and could go kaput at any time.

Even so, certainly was an interesting couple of days as I had to re-learn a few things.

So, without further adieu then, DL-L2.

So, for the Part VI of LAB 2 we need to read into “Double Dabble“.  The Part VI story doesn’t give the hint as to how but its a safe bet Double-Dabble will do.  Again we are missing buttons on our board.  We’ll take a 8 bit example and recode for 6 bit.

Perhaps, something like this first cut from wikipedia VHDL example.