Johnny IV | ordered some goodies
2017-07-11 15:23:29
I was looking for color coding standards and connectors for I2C, hopefully something cheap. I found Grove I2C connectors instead. Now I've ordered some connectors, cables and hubs to connect sensors and mcus - which hopefully makes developing and later adding new sensors easier.
Johnny IV | Starting to see things :D
2017-07-10 15:37:43
A little enclosure for the VL53L0X Time of Flight laser sensor module - one of the elongated, purple-pinkish once.

https://www.thingiverse.com/thing:2427661
Johnny IV | Finally a head mount
2017-07-10 12:10:03
I never came around to actually mount Johnnys head to my #R8-D8 - a distant relative of R2-D2 - it's possible to even motorize it later, but for now it's just fixed and transportation is way easier now! Currently in revision is a 3D printed case for the vl53l0x, to protect the module that replaces the interactive ultrasonic module. What other robot could I throw in there to mash up?

Playing around with IS31FL7X
2017-07-02 19:37:30
Trying to make [this] work with the Arduino IDE on a Wemos D1 Mini. The additional capacitor got loose, so that there were fluctuations in one row. One row seems to be dead now, after I tried to resolder the QFN chip with my soldering iron. Instead of fiddeling around with that anymore, I finally got around to fix my hot air station. One of the 230V cables was crimped wrong, there was still some isolation where there should have been the blank cable, I wonder why it ever worked at first. There's a DIP Atmega8L inside - funky.
#include <Wire.h>
byte address = 0x50;
void setup() {
Wire.begin();
activate();
}
void loop() {
ledPWM(255);
delay(1000);
ledPWM(0);
delay(1000);
}
void ledPWM(byte b)
{
for (byte i=0; i<98; i++)
{
writeEnable(byte(0x01));
Wire.beginTransmission(address);
Wire.write(i*2);
Wire.write(b);
Wire.endTransmission();
}
}
void turnOnLeds()
{
writeEnable(byte(0x00));
Wire.beginTransmission(address);
Wire.write(byte(0x00));
for (byte i=0; i<12; i++)
{
Wire.write(byte(0x55));
Wire.write(byte(0x15));
}
Wire.endTransmission();
}
void releaseRegister()
{
Wire.beginTransmission(address);
Wire.write(byte(0xfe));
Wire.write(byte(0xc5));
Wire.endTransmission();
}
void writeEnable(byte page)
{
releaseRegister();
Wire.beginTransmission(address);
Wire.write(byte(0xfd));
Wire.write(page);
Wire.endTransmission();
}
void activate()
{
writeEnable(byte(0x03));
Wire.beginTransmission(address);
Wire.write(byte(0x00));
Wire.write(byte(0x01));
Wire.endTransmission();
writeEnable(byte(0x03));
Wire.beginTransmission(address);
Wire.write(byte(0x01));
Wire.write(byte(0x30));
Wire.endTransmission();
turnOnLeds();
}
world clock thing | Arduino code for the ESP
2017-06-28 12:08:14
(OTA doesn't work with current chip)
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd[8] = {
LiquidCrystal_I2C(0x27, 16, 2),
LiquidCrystal_I2C(0x26, 16, 2),
LiquidCrystal_I2C(0x25, 16, 2),
LiquidCrystal_I2C(0x24, 16, 2),
LiquidCrystal_I2C(0x23, 16, 2),
LiquidCrystal_I2C(0x22, 16, 2),
LiquidCrystal_I2C(0x21, 16, 2),
LiquidCrystal_I2C(0x20, 16, 2)
};
int LED = 0;
int sda = 4;
int scl = 5;
int current_lcd = 0;
int current_lcd_line = 0;
const char* ssid = "XXX";
const char* password = "XXX";
const char* clientID = "octoLCD";
const char* host = "your.hostname.com";
void setup() {
Serial.begin(115200);
Serial.println("Booting");
Wire.begin(sda, scl);
for (int i=0; i<8; i++)
{
lcd[i].init();
}
for (int i=0; i<8; i++)
{
lcd[i].backlight();
}
setup_wifi();
ArduinoOTA.setHostname(clientID);
ArduinoOTA.setPassword((const char *)"PASSWORD");
ArduinoOTA.onStart([]() {
Serial.println("Start");
});
ArduinoOTA.onEnd([]() {
Serial.println("\nEnd");
});
ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
Serial.printf("Progress: %u%%\r", (progress / (total / 100)));
});
ArduinoOTA.onError([](ota_error_t error) {
Serial.printf("Error[%u]: ", error);
if (error == OTA_AUTH_ERROR) Serial.println("Auth Failed");
else if (error == OTA_BEGIN_ERROR) Serial.println("Begin Failed");
else if (error == OTA_CONNECT_ERROR) Serial.println("Connect Failed");
else if (error == OTA_RECEIVE_ERROR) Serial.println("Receive Failed");
else if (error == OTA_END_ERROR) Serial.println("End Failed");
});
ArduinoOTA.begin();
}
void setup_wifi() {
delay(10);
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
void loop()
{
ArduinoOTA.handle();
WiFiClient client;
const int httpPort = 80;
if (!client.connect(host, httpPort)) {
Serial.println("connection failed");
return;
}
delay(10);
String url = "/81602/index.php";
client.print(String("GET ") + url + " HTTP/1.1\r\n" +
"Host: " + host + "\r\n" +
"Connection: close\r\n\r\n");
delay(10);
boolean ignore = true;
reset_lcds();
while (client.connected())
{
char a,b,c,d;
if (!ignore)
{
String line = client.readStringUntil('\n');
Serial.println(line);
draw(line);
}
else
{
a = client.read();
if (a == 13)
{
b = client.read();
if (b == 10)
{
c = client.read();
if (c == 13)
{
d = client.read();
if (d == 10)
{
ignore = false;
}
}
}
}
}
}
delay(15000);
}
void draw (String line)
{
lcd[current_lcd].print(line);
if (current_lcd_line==1)
{
current_lcd_line = 0;
if (current_lcd<7) current_lcd++;
}
else
{
lcd[current_lcd].setCursor(0,1);
current_lcd_line = 1;
}
}
void reset_lcds()
{
current_lcd = 0;
current_lcd_line = 0;
for (int i=0; i<8; i++)
{
lcd[i].clear();
}
}
world clock thing | soooon
2017-06-27 23:40:08
So the data is served by a webpage, but it's still a mockup. But yay!
world clock thing | I'm a fire-ing my laser
2017-06-24 23:12:09
noooo.

R8-D8 - a distant relative of R2-D2 | 2 cell power bank
2017-06-18 13:43:58
[2018-10-03] Turns out my schematics were bad and basically shortened one battery when in "use" setting. The after math: one LiPo is trash, as well as the charger. Today I've rebuild the charger with normal TP4056 modules, no protection and strictly followed the tutorial.
[2017-06-18] next maker faire this thing needs to roll around and move the head and stuff. SO I needed a power bank. I wanted it to be a 2 cell battery, that is also balance charged.
https://learn.adafruit.com/multi-cell-lipo-charging/fast-multi-cell-charger my schematics are a bit different, but the general concept is the same. Micro USB is all the rage to charge stuff, but mounting can be quite a challenge, so I went with a USB B plug. I've used two classic TP4056 modules with onboard protection (TE420) and a voltmeter. Bye bye weekend, but totally worth it!

Johnny IV | aftermath of Maker Faire Berlin 2017
2017-06-17 16:02:18
I've brought R8-J5, formally know as #R8-D8 - a distant relative of R2-D2 and #Johnny IV - I got a lot of questions like "what does it do?", first day the answer was "nothing", second day I've reactivated the eyes from the last log.
It needs a good power platform to start from, so I'll recycle some power bank batteries into a 2S cell. With the help of some cheap ebay modules and a switch.
WIFI Game Boy Cartridge | Starting with esp-idf-v2.0
2017-06-16 22:23:40
http://esp-idf.readthedocs.io/
Finally found the time and inspiration to work on this project again. To get the I2S demo of CNLohr working, I also needed to be able to compile with the esp-idf.
how to: Maker Faire | powering your projects
2017-06-16 11:29:18
@al1's battery box tip
LiPos have their special place in many of our projects, but sometimes it's just neat to have one of those AAA battery boxes with a switch that fits two-three batteries. Many of the common projects run just fine off them, like @al1 's #reCLOCK -> it's so tiny! But it also helps to show off the piece, because it makes it portable.
@Radomir Dopieralski's two cents
A. Make sure the batteries are easily removable, and take a few spares and a charger. This way you can charge one battery while the project runs on the other.
B. Remember that your projects are probably not designed to move all the time for 8+ hours straight. Motors get hot, servos wear out and break, batteries can only take so much recharging. So make breaks. If you have several projects, run one at a time. This will also encourage people to come back to your table later.
Use USB hubs and breadboards
Kind of obvious, but in case you want to power a lot of little projects, you can easily distribute power with a USB hub or use breadboards. Powered USB hubs should work pretty well, but you can also put HUBs on power banks!
BINCL - binary coded decimal 10mm LED clock | Deeeemooo
2017-06-03 16:37:48
The blue is still a bit too strong, even with a 1k resistor.. meh. (edit: progger runs on 5v, not the tested 3V3 :D )
BINCL - binary coded decimal 10mm LED clock | Binary sunset
2017-06-03 14:24:11
checking resistor values. Yellow gets 100 ohms, blue 1k ohms.

link drop for modding/repairing/hacking stuff | UNI-T UT61E
Heimdall - dumb remote home | TIL: echo dot has a speaker
2017-05-22 09:23:45
The echo dot currently runs for 55 Euros and I couldn't resist buying one! The option to chose your own speaker instead of paying 120 Euros more for the full echo was almost reason enough for me - but to my surprise I discovered that the echo dot also has an (admittedly crappy) speaker! It's enough to chat along and use IFTTT with adafruit.io+alexa receipts to switch the lights on by saying "echo trigger Küche ein" etc. - nice!
connection adafruit
address io.adafruit.com:1883
username ADAFRUIT_USERNAME
password ADAFRUIT_KEY
start_type automatic
cleansession false
notifications false
try_private false
topic inTopic in 0 "" davedarko/feeds/
It took me a while to figure out that the "remote_username" and "remote_password" on my raspberry had to be replaced by "username" and "password", since the mosquitto version on my PI is (still?) too old? [adafruit.io - bridge mqtt] To get some debug informations, stop the mosquitto service and start it as a program.
cd /etc/mosquitto/conf.d/
sudo systemctl stop mosquitto.service
mosquitto -c mosquitto.conf
WIFI Game Boy Cartridge | celebrations are in order
2017-05-14 23:37:21
http://hackaday.com/2017/05/14/hackaday-prize-entry-wifi-game-boy-cartridge/

I feel some questions are coming my way, so I've updated the detail section :)
blinking things | RGBY LEDs
2017-05-14 11:55:09
http://www.ebay.de/itm/172664995172
I've ordered some of CNLohr's RGBY LEDs for my WeMos shield, will update this once they arrive :)
Game Boy Cartridge plus Programmer | interesting puzzle game
2017-05-13 22:58:25
@Frank Buss just linked me this http://www.coolmath-games.com/0-bloxorz http://www.frank-buss.de/vectrex/index.html a neat little puzzle game. Should I ever come to writing a Game Boy game, then this would definitely be a candidate! Right after Game of Life of course.
WIFI Game Boy Cartridge | precognition in a game boy?
2017-05-13 14:24:35
So I thought to myself, if the ESP is too slow, but the query itself is taking microseconds instead of nanoseconds: why not trick the ESP and spit out the next in array? here's what I got, admittedly one of the better results, but you can finally read something! I can live with it, if I can get it to work reliably.

WIFI Game Boy Cartridge | i2s for parallel IN / OUT?
2017-05-13 01:14:28
https://www.esp32.com/viewtopic.php?f=19&t=1746&p=8153&hilit=parallel#p8153
Seems like I'm 3us late with reading and preparing my response. The posted scan looks like it takes 175us from address change to address change. Putting it in relation, an EEPROM takes 150ns to respond, that's 1/20 of the time I have now. With 240MHz the ESP32 should have a clock cycle time of 4.16ns. Whaaaat? My math is broken. Seems like the maximum speed for gpios on the ESP is "quite" limited, max toggle freq is around 4MHz. https://www.esp32.com/viewtopic.php?f=2&t=1595&p=7482&hilit=parallel#p7482
Seems like there is a multipin IS2 interface that was also used on https://github.com/igrr/esp32-cam-demo/blob/master/components/camera/camera.c#L314
https://www.esp32.com/viewtopic.php?f=12&t=951&p=4113&hilit=parallel#p4113