all years
202620242023202220212020201920182017201620152014
2211152313307215210213462
1 / 7 older

Heimdall - dumb remote home | back from Christmas and 32C3

2015-12-30 21:15:50

and the PI is down for a week now, couldn't write to the FS and now kernel panics and doesn't mount the FS. This is so annoying!


So I hooked up the raspberry PI A that I also have, in the hopes that this was a damage due to previous SDcard fails on the PI B rev2. Let's see how far PIA gets with a brand new card.

faboyism activated

2015-12-23 22:38:00

Just in case someone was wondering why I got silent for a while, this is what I've been working on the past days - printing will start on 31st of december. In total 17 parts to print and one order at OSHpark! Once I have printed everything I'll probably geek out and do some LED stuff and gyro/acc sound generating experiments.


Happy holidays to every one and if you haven't seen Star Wars yet - I honestly don't know what to say to you :)


My 'paid' review on xrobots.co.uk

2015-12-14 17:55:04

As a patron on patreon.com for James Brutons channel I paid enough to get mentioned in a video :D Actually the amount you have to pay is very low and I pay it for more than a year now - and not because I wanted to be featured! I actually deleted my comment 5 minutes after posting, but he must have seen it and put me in anyway :) The following projects are featured:

#R8-D8 - a distant relative of R2-D2

#RGB 16 Segment LED

#fixietube clock

Heimdall - dumb remote home | Backup to dropbox

2015-12-11 22:21:05

https://github.com/andreafabrizi/Dropbox-Uploader

Since I've upgraded my dropbox account I checked for the possibility to backup stuff to it from the raspberry PI. Somebody already has written a nice bash script that connects with the API. Looks easy enough. You have to add an App and get a secret key to get access to your whole dropbox or an app folder. Having a folder for the raspberry is enough for me, since I only want to upload the files.


It's quite slow, probably handshaking for every file, uploading it and closing transactions makes it not so fast, but doing this once a day won't hurt. It's not deleting stuff but it doesn't simply overwrite it, that's a plus. Probably makes sense to make a zip file and only upload that.

Heimdall - dumb remote home | ... with style

2015-12-11 21:38:52

I was looking for a lightweight css library and thanks to http://www.purecss.io/ I now have a nice looking status monitor. This is still not switching anything :( Should have made a backup from my old stuff.

Me building projects from hackaday.io | ​RPi WiFi Hat - by ajlitt

2015-12-11 13:17:58

#RPi WiFi Hat - by @ajlitt

[update 2015-03-05] new simplified design based on newest development of @ajlitt


Using an ESP8266 (ESP03) connected to a Raspberry PI over the SDI interface - that just looks too awesome! I still have an ESP03 that doesn't fit my #Ignore this ESP8266 board so I have to try this! If it works, I might be crazy enough to make a pi Hat, since the ESP8266EX does not need that many external parts.


Just for the clicks I'll add a screenshot for a mocked up panelized version of a board that isn't routed or thought through much. I should add a 3.3v converter.

https://www.adafruit.com/images/product-files/2471/0A-ESP8266__Datasheet__EN_v4.3.pdf

https://www.sparkfun.com/products/13231


Oh. I have to sleep on this. If anyone wants to look over it, feel free, would make me happy :) if you have a suggestion, please leave a comment.

https://github.com/davedarko/PIzero


I panelized the board that is based on ajlitt's latest update, fitted to a 5x5 cm2 board and ordered it at dirtypcbs.com - I went with blue because I thought the ESP12F was blue, but it's actually black. Ah well.

Heimdall - dumb remote home | Sending status mails

2015-12-10 13:05:32

http://tombuntu.com/index.php/2008/10/21/sending-email-from-your-system-with-ssmtp/

sudo apt-get install ssmtp

sudo nano /etc/ssmtp/ssmtp.conf

root=myemailaddress@gmail.com
mailhub=smtp.gmail.com:587
AuthUser=mygmailusername
AuthPass=mypassword
UseSTARTTLS=YES

If you use your google account then you will have to add an app password instead of your user password.

ssmtp myemailaddress@gmail.com < msg.txt

msg.txt is a simple text using the proper formatting for sSMTP:
To: myemailaddress@gmail.com
From: myemailaddress@gmail.com
Subject: alert

The server is down!

Ctrl+D

or
 
printf "To: myemailaddress@gmail.com\nFrom: myemailaddress@gmail.com\nSubject: New IP address\n\n\nMessage\n" | ssmtp myemailaddress@gmail.com

Heimdall - dumb remote home | all about that shield

2015-12-09 11:48:50

because I asked myself what the price would be in case I use the PIzero and want to create a shield... tada:

This is a design for an arduino HAT that can feature an atmega328p as a cheap ADC and even more IOs I don't use. Arduino for real-timey-wimey stuff. I've completely done it the wrong way again, first designed, then checked. Still had some fun and assures me that it's doable.

Path to do:

  1. check how much current the 3.3V power converter on the raspi can deliver additionally for powering the arduino
    1. if needed, design a power supply based on the MCP1710 (shutdown input makes it interesting for arduino)
  2. add 5V micro/mini USB port and put ACS712 between
  3. add RGB LED for basic debugging (wsb2812 or plain rgb)
  4. add jumpers / soldering connections for different powering setups
  5. maybe replace the quartz for something SMDish

http://pi.gadgetoid.com/article/building-the-pico-piduino

https://projects.drogon.net/raspberry-pi/gertboard/arduino-ide-installation-isp/

http://pinout.xyz/pinout/arduino_spi

433MHz remote control

https://github.com/r10r/rcswitch-pi

Heimdall - dumb remote home | Bye Bye Mr. Raspberry Pi

2015-12-08 22:36:43

I'm gonna throw away that Raspberry PI B Rev2 - it gave me weird graphical glitches and didn't start up properly after the first shutdown. Makes me feel bad, but on the other hand I still have the B Rev1 and A Rev2 plus the new Raspi zero.


Headless raspberry PI A - aka 'pia' is running now. The power switch I used might be a bit dodgy, I've seen the lights going on again when switching the power off. That might not be healthy for the PI. The 8GB SD card looks good, 6GB are formatted to FAT32 and are meant to be storage.


For OOKing around with the 433MHz and the power monitoring stuff I need the correct pinout. The module was called "5A ACS712 Module Range Current Sensor For Arduino" on ebay. It's a hall effect based current measure thingy.

https://www.raspberrypi.org/documentation/usage/gpio/

Much Nice. Such wow.

http://pinout.xyz/pinout/

Heimdall - dumb remote home | Next problem up: D-Link dynDNS

2015-12-08 11:59:57

My router sets a wrong IP address when updating dynDNS, probably the one that my ISP gives me internally. So I had to write a little bash script for setting the IP address. Thanks to the api provided by dyn.com I was able to do just that.

#!/bin/bash
IP_stored=$(cat IP.txt)
IP_current=$(wget http://ipinfo.io/ip -qO -)


HOST="somewhere.dlinkddns.com"
USERNAME="username" //whaaaat
PASSWORD="password" //why did I post this??
URL="members.dyndns.org/nic/update"
URLEND="&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG"
if [ "$IP_stored" != "$IP_current" ]
then
        curl "http://${USERNAME}:${PASSWORD}@${URL}?hostname=${HOST}&myip=${IP_current}${URLEND}"
        echo "${IP_current}" > IP.txt
fi

Cronjob

*/5 * * * * cd /home/pi/script/ && bash dynDNSupdate.sh

https://help.dyn.com/remote-access-api/perform-update/

http://askubuntu.com/questions/95910/command-for-determining-my-public-ip

Heimdall - dumb remote home | raspberry pi zero running headless vs. ssh login

2015-12-06 20:12:37

Case by pimoroni.com


oh dear. Seems like all the time when SSH got the hick-ups on my mac and I blamed the raspberry pi that I was wrong. SSH on my mac sometimes loses connection and tells me the host is down, but when I call top it tells a long uptime. That is weird. Not sure what happens.

I'm installing php and mysql right now, all over a ssh-client on my phone.

Change the names of your raspberryPIs if you have had more than one.

sudo service dhcpcd status

told me to do reload my daemons with

sudo systemctl daemon-reload

No clue and final thoughts for today:

whenever my ssh terminal or the browser tells me that the IP address is not reachable, my cellphone has no problems and likewise the browser, if I connect over dynamicDNS. Whenever I cannot connect over IP, the pizero.local address is also unreachable from my mac. If I then refresh or try to reconnect, it gets back again. Power supply is 1A and it is only the pizero with an OTG connected edimax usb wifi dongle. It must be something with routing in general. I've seen this at my grandmas place too. Gnargh. Is DHCP on jessy a bad thing? I have no idea. Just more questions than before.


This morning I had to wake it up with multiple requests, that made google a bit more. Found kbd settings to play with.

sudo nano /etc/kbd/config

Powersaving and monitor blank set to 0 now

Seems to be a valid thing turning the PI headless (that's what I want for all of them anyway, so, hurray!)

http://www.sbprojects.com/projects/raspberrypi/tweaks.php

https://www.bitpi.co/2015/02/14/prevent-raspberry-pi-from-sleeping/

http://serverfault.com/questions/137728/how-do-i-permanently-disable-linuxs-console-screen-saver-system-wide


I ran out of mojo again. Maybe it's the WiFi dongle.

sudo nano /etc/modprobe.d/8192cu.conf

options 8192cu rtw_power_mgnt=0

http://raspberrypi.stackexchange.com/questions/1384/how-do-i-disable-suspend-mode

http://www.mikeslab.net/?p=178

http://electronut.in/preventing-raspberry-pi-wifi-from-going-into-sleep-mode/

Heimdall - dumb remote home | USV PSU and stuff, link dropper

2015-12-05 16:24:18

Excuse my german.

http://www.stall.biz/project/usv-fuer-homematic-ccu2-und-raspberry-mit-wirkungsvollem-ueberspannungsschutz

http://www.elektronik-kompendium.de/sites/grd/0812171.htm


Ignore this ESP8266 board | using the ADC with the arduino IDE

2015-12-04 20:35:22

I've changed the two ADC resistors to 10k and 3.9k, giving me a range of 0V - 4.9V to be able to check the battery connected to the system.

Here's a little conversion script for reading and printing the values. I'm high on sugar, so it took me longer than I am able to admit :D

int r1 = 3883;
int r2 = 1000;

void setup() {
  
  Serial.begin(9600);
}

void loop() {
  float val = analogRead(A0);
  
  float vout = (val) * (r1 + r2) / r2 / 1023;
  Serial.print(val);
  Serial.print(" - ");
  Serial.println(vout);
  delay(200);
}

ESP8266 RFid reader | talking to servers and downloading bitmaps

2015-11-27 22:41:42

So my ESP8266 downloads bitmaps now ;) And I have a basic script running, that reads a RFID tag, sends it to my server and turns red or green, depending on the response. Awesome!!!

Now I'm ready for bed :)

ESP8266 RFid reader | busy day ...

2015-11-27 01:17:24

this thing distracted me for a whole day from everything. Tomorrow I'll put some informations up here, like code and pin connections. But yay, this is my first shield for my #Ignore this ESP8266 board ! It gave me the opportunity to fix the wrong pinout of the FTDI programming header on my V1 boards. I've also made a classic Arduino mistake and placed the FTDI header 0.05" off-grid. That's not the case for V2 though!

RFid is working at this point, so I decided to turn the project public (that private project feature is so useful!) - next up is pushing the UID to a server and get different responses to show on an RGB led.

NRF24L01 remote project | powering

2015-11-16 16:00:34

https://www.pololu.com/product/2122

Since this is supposed to be portable, I want to throw in a LiPo battery, but everything runs on 3.3V. While searching for step-up/step down converters I found the pololu.com S7V8F3. I've bought one some time ago and I'll just throw it in, instead of using a booster to 5V and a 1117 to drop it down again.

Should have stayed with 5Vs, now that I'm thinking about that. Meh.

NRF24L01 remote project | first days of fiddling

2015-11-15 00:56:37

Three things I could rant about:

  1. I forgot that the Arduino is 3.3V and 8MHz
  2. the OLED displays I once bought had no reset circuit - fixed by adding a 10k resistor and 100nF cap, see: http://rayvenn.alnet.com.ua/2013/08/crius-oled-display-fix/
  3. the mounting holes of the pcbs are designed off center from the joystick - fixed case with dremel

Me building projects from hackaday.io | nRFIoT - Easy IoT Sensors by https://hackaday.io/justind000​

2015-11-09 11:26:26

#nRFIoT - Easy IoT Sensors by https://hackaday.io/justind000

This is my take on the idea of a nRF24L01 shield for arduino minis. They are cheap like the nRF24 modules and I want to work on a remote for my droids and drones in the future. I used 1206 parts and mini usb because I have a lot of them.

Ignore this ESP8266 board | all hand soldered

2015-11-07 21:24:14

RGB 16 Segment LED | weird

2015-11-07 00:00:05

My ascii 'little a' is 98, according to my array. Not sure why. But here we have: text! Finally - before I was running the demo script from adafruit.io, that surely looked nice.

1 / 7 older