Mini Raspberry Pi Rant

I’m just making this post to vent out my anger,

In my personal experience, the Raspberry Pi is THE SINGLE MOST UNRELIABLE DEVICE I HAVE EVER OWNED.

I have had two raspberry pis, neither of them show better results.

For me, every time I power on my Pi its a matter of praying to the gods that it turns on.

I have tried all range of SD cards, from $100 sandisk extreme cards to $2 chinese cards to the official one itself!

It seems that almost every second time I turn the damn thing on, I am met with the god damned faintly lit green LED that means theres no OS detected.

GOD DAMNIT THIS THINGS USELESS

I always shut down with ‘sudo shutdown -h now’

BUT THIS SAME THING HAPPENS STILL

IS IT TOO MUCH TO ASK FOR IT TO JUST WORK CONSISTENTLY ?!

WHY DOES IT CORRUPT? WHAT AM I DOING WRONG???

WHY DO PEOPLE STILL USE THIS POS!?

Welp, time to spend another few hours setting everything up from scratch again or trying to repair the filesystem.

 

EasyIoT DS18B20 Temperature Sensor – ESP8266

I needed a temperature node, but I didn’t have a DHT22 temp/humidity sensor!?

So I modified the example sketch for the DHT to use a DS18B20 Digital Temperature Sensor instead!

It works great!

The sensor is connected as shown here:

http://www.hobbytronics.co.uk/ds18b20-arduino

Heres the code:

 

/*

DS18B20 Digital Sensor Node Sketch for EasyIoT Server
Modified by Lewys Martin <l@lewys.eu>
See: blog.lewys.eu for details

Original Code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

V1.0 – first version

Created by Igor Jarc <igor.jarc1@gmail.com>
See http://iot-playground.com for details
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundation.
*/
#include <Esp8266EasyIoT.h>
#include <SoftwareSerial.h>
#include <DallasTemperature.h>
#include <OneWire.h>

#define CHILD_ID_TEMP 1
#define SENSOR_DIGITAL_PIN 2
Esp8266EasyIoT esp;

SoftwareSerial serialEsp(10, 11);

OneWire oneWire(SENSOR_DIGITAL_PIN);
DallasTemperature sensors(&oneWire);

float lastTemp;

Esp8266EasyIoTMsg msgTemp(CHILD_ID_TEMP, V_TEMP);
void setup()
{
serialEsp.begin(9600);
Serial.begin(115200);

Serial.println(“EasyIoTEsp init”);
esp.begin(NULL, 3, &serialEsp, &Serial);
//esp.begin(NULL, &serialEsp);
esp.present(CHILD_ID_TEMP, S_TEMP);

sensors.begin();
}

void loop()
{
while(!esp.process());

sensors.requestTemperatures();
float temperature = (sensors.getTempCByIndex(0));
if (isnan(temperature)) {
Serial.println(“Failed reading temperature from sensor”);
}
else if (temperature != lastTemp)
{
lastTemp = temperature;
esp.send(msgTemp.set(temperature, 1));
Serial.print(“T: “);
Serial.println(temperature);
}
}

And some pictures:
image

image

ESP ARDUINO PERFBOARD THING

I actually managed to produce something that is NEAT

and well laid out (in my opinion)

Parts:

• Arduino Nano
• ESP-01
• 5-3v Level Shifter
•  Perfboard
• Bunch of headers
• Some wire
• Soldering Iron + 0.3mm Solder
• Dremel to clean things and cut things and stuff

 

As you can see in the photos:

The board as a whole:

Whole Board

The board with components removed:

Components Gone

The underside of the board:

Underside

Cleaned edges with Dremel:

(i got a Dremel for christmas btw)
(i got a Dremel for christmas btw)

The things I have to add still:

Also, as you can see, theres a notch missing from the Arduino near the ICSP pins, I used my Dremel to grind that away (theres no traces there as far as i can tell) so that the ESP module fits so perfectly there and the whole package fits inside the dimensions of the perf board 😀

Arduino pin 2 for DHT22, 13 for relay.
Arduino pin 2 for DHT22, 13 for relay.

This node has been added to my EasyIoT Server as a secondary relay node for the time being, but I want to get my hands on a DHT22 to add a temp/humidity sensor to my bedroom 😀

Then I can start expanding to other rooms in the house! MWAHAHAA

MY BEDROOM LIGHT IS NOW CONNECTED TO WIFI

Using a full size Arduino Uno modified to 3.3v, and that weird shield I built, modified to software serial pins 10 and 11, and also to add a power input of 5v that gets regulated to 3.3v on both the shield for the ESP8266, and the arduino for… itself?

It connects to a Raspberry Pi running the latest version of Raspbian and EasyIoT Server, I figured out their API without even a mention of there BEING ONE ON THEIR WEBSITE (they don’t mention it anywhere but i noticed a mention of it in the console log and figured it out)

The ESP8266 01 type connects to the main WiFi, then to the server, from then I can browse to the IP of the server and theres a beautiful interface 😀

The EasyIoT server also supports the RasPi GPIO and the MySensors stuff, so Im gonna use that for things like doors, and temp/humidity sensors

Photos will come soonish:

image

image

image

image

image

Low power Arduino Pro Mini

I butchered up one of the almost-broken Pro Minis I have, its a 16Mhz version so not sure if its going to just run at a lower frequency or be unstable, but all I will need it to do is sleep and wake up every now and then to send a reading from a sensor!

Im going to get some of those NRF24 something radios as they seem to have far better range and support than the things I HAVE been using hahaa,

Basically, I removed BOTH LEDs (forgot there was a PIN13 LED on there D:  could have left that

and the regulator was also removed.

Powered it via 3.3v from my USB TTL adapter and uploaded a blink sketch, probed an LED onto 13 and GDN (yes GDN hueeee)
and it blinks 😀

so I can use this one soon.

ESP-01 and 07 progress

After a few weeks of playing with them I finally have something worth writing about!

For the 07 nothing much more than I finally made a breakout board, as you can see here:

image

Its raised on a random SMD electro cap, and connected to the perfbpard with zero ohm resistors.
(The cap has only one purpose, raise the module)

As for the 01,
I rewired the serial lines up to pins 10 & 11, for software serial, then using the EasyIoT library have it connected to the Easy IoT server running on a raspberry pi elsewhere in the house!

At the moment it’s got a relay, but when I get some more sensors and modules I’ll make a while bunch of things. Need some of those temperature and humidity combo sensors, and some of that 2.4ghz rf transceivers for low power nodes. Also need some 3.3v pro minis 😀

Here’s the 01:

image

External 5v goes in, relay feeds It’s VCC off this, then it goes through an 13337 based regulator down to 3.3v for the esp, (have to wire in a selection switch for powering the arduino also from this 5v source. Then a proper power connector.

Will update soon with any changes 🙂