Project Updates for 9/8/2018

I preformed the electrical tests for the Hackulator again and they tested good. I also had to shave down the faux connector so that the battery panel laid flat. I also took a sharpie and colored any places that should be black. The calculator is looking really great and it's pretty much just software that I need to work on at this point.

I went ahead and connected the X10 FireCracker to the Wio Link since it is WiFi capable and I thought it would make a great board to control the FireCracker with. My only concern was that the Wio Link/ESP8266 uses 3.3V logic and since the FireCracker has an RF Transmitter, I wasn't sure if it would work properly at that level. According to the Data Sheet for the PIC 12C508A that is used on the FireCracker, it should function at 3.3V. I figured that I should probably set the 2 items fairly close just in case and after that the best thing to do at that point is to try. I went ahead and took apart a DB9 Serial Cable to use the connector on it since the 4 wires in the cable didn't have the proper connections.

I loaded the Arduino Library and after making some adjustments to the library due to the fact that it was written for a much older version of Arduino, it compiled just fine. I uploaded it to the Wio Link and the program worked great. I decided to keep the DB9 Connectors on the FireCracker in case I ever needed to replace that component since they are still available to purchase. This will make it much more modular and less work for me. I received a couple ESP8266 NodeMCU boards today that I had ordered. I hooked up the OLED I had bought for the function generator since I decided not to continue working any further on that project because it was more to scratch an itch than anything else. I attached the Firecracker to the NodeMCU and uploaded the code I had been working on and it worked great. I modified it so that it displays the command that it is sending along with the House Code and Device ID.

After that I spent some time writing some code that subscribes to my MQTT server, which is running on my Pine64 and listens for commands. If it gets a command, it decodes it, sends it to the FireCracker, which is received by the X10 Radio module which transmits it through the house wiring to the rest of the house. There's a lot of optimization that could happen with the Arduino code, but I wanted to write something that at least functioned. Later, I plan on designing and 3D print a simple box for the NodeMCU along with a cutout for the display, a hole for the USB Port, and a place to attach the serial port.

I also got a Smart light switch that I would like to get working with OpenHab. Currently it works with Smart Life, which from my research is really a rebranded Tuya. It looks like several people are trying to get this working, so at least I'm not alone. For now, it at least works with Alexa. As you can probably tell, I like challenges like this and tend to do pretty well with tackling them.

After that, I'll probably design and 3D print a box for the NodeMCU along with a cutout for the display, a hole for the USB Port, and a place to attach the serial port.

Posted in Old Posts 08 Sep 2018