-
Another "object" just for joy!
09/09/2018 at 05:56 • 4 commentsThis time, I made more simple object just for joy. the above picture shows the object buried inside epoxy resin. Indeed they are object for N-gauge model train, and I added several tiny (1005 (0403)) size LEDs for headlight of car, traffic signals. Just turning on is not so interesting, so I put Arduino boot loader loaded ATmega328 below the basement of traffic signal. I made it looks like the car is ready to fly!!
And here is the completed one. Signal is controlled by MCU and actual operation can be found in the following movie... Have fun!
-
Short demo of super clear epoxy object "IoT pyramid"
08/30/2018 at 01:16 • 2 commentsHere I made a short demo movie. All of firmware is uploaded through OTA (over the air), The case of nRF, firmware uploading is quite safe because boot loader and application are separated in memory, but the case of ESP32, the OTA code and user code are mixed up in the program and it's very, very easy to make it BRICK (lose control, turns into static object..)
Here is the way to make it brick in ESP32 OTA
void loop() { ArduinoOTA.handle(); pinMode(LED, HIGH); delay(1000); pinMode(LED, LOW); delay(1000); }
The function, "ArduinoOTA.handle()" must be kept in running in loop function but blinking LED (especially delay() function) will interrupt its operation. Once this code is uploaded through OTA, it will "brick" the module and we need wired firmware uploading (but in the epoxy, no way.)
The correct way is, (not the only way, just example)
void loop() { ArduinoOTA.handle(); long int hoge=millis(); if(hoge%1000==0){ digitalWrite(LED,HIGH); } if(hoge%1500==0){ digitalWrite(LED,LOW); }
Taking a time from mills() and delay() should never be used in loop function. This case ArduinoOTA.handle() keeps running and sometimes LED will switch HIGH and LOW.
-
More details about the origin of this project.
08/29/2018 at 13:28 • 0 commentsYou may just think these are real fish, but in fact they are drawing. A few weeks ago, I got to know it on TV program, and very the same day I went to a museum currently presenting this art.
This encounter was almost "groundbreaking" to me, but unfortunately I am not good at drawing but I want something inspired by this wonderful shock.
Actually I did not know the existence of this material "super clear epoxy". As you see, it is really clear and looks like floating inside transparent object. Currently it is just the beginning but I will try make more by using this wonderful material. On the next project log, I will explain how to program them (as you guess, it's OTA)..