Sunday, 9 February 2014

Compile any wallet for coins based on Scrypt

Here a little tutorial how to compile for you linux the wallet, because I always found instructions for windows, at least a binary ready but nothing about how to compile it for linux.

After hours and hours of googling, I ended up on this website, that explains step by step what to do.

I am going to write the simple steps that always worked for me, in case you have trouble you might want to check the website.

1) Get all needed software

sudo apt-get install build-essential libssl-dev \ libdb-dev libdb++-dev libboost-all-dev \libqrencode-dev qt4-qmake libqtgui4 libqt4-dev

2) Check out your wallet's source code

git clone <git source>

Dogecoin: https://github.com/dogecoin/dogecoin.git

3) Compile the wallet

Enter the folder of your source code and type:
qmake USE_UPNP=- USE_QRCODE=0 USE_IPV6=0

then just type:
make

If everything goes good, you should have the binary on the current folder, for Dogecoin would be dogecoin-qt.

That's all, I hope that this little guide has been helpful and you won't google for hours and hours to find the solution.


Monday, 11 November 2013

Strip leds at 5v

Intro:
Are you looking to implement some leds on your project? Do you want a strip leds that works at 5v? Are you interest about strip leds? I hope that one of these questions you have answered to YES otherwise this post will be useless for you =).

I am going to describe what I got on Amazon for a few pounds, just to add on my project some strip leds that could work at 5V instead 12v as usual.


Items:


Teardown:

The strip leds came with a small controller with 3 functions:
  • Light: you can change the colour of the leds with predefined colours
  • Speed/Bright: you can change the speed and brightness
  • Mode: you can change mode between: fading, strobe and solid
In the video you can see how bright they are and a small demo.
 


Under the protective plastic you can find 3 buttons and on the back some components, nothing very interesting, the main chip doesn't have any info printed on it.



The strip leds is a normal RGB, you can see from the image below, it has 4 pins:

  • 5V
  • Green
  • Red
  • Blue
Great news that allows me to re-use this strip leds with my Arduino.




Testing leds: Google plus ( sorry I couldnt upload on youtube)


Arduino Test:

The final conclusion, this simple and "cheap" ( well still 4 pounds but for prototyping is good enough ),  is suitable to be connected on your Arduino.
Below you can see that I tried to give 5v and the Ground to the pin Blue, I got the blue colour.

What you need to do is to connect the 3 pins on your 3 PWM output and try to send values from 0 to 255.
The strip leds will change colour based on what you are going to send on each pins, it's easy, isn't it?

Friday, 25 October 2013

Photo resistor with inverter logic


Intro:
I was looking for a system that allowed me to trigger a circuit when was getting dark, so I found out that with some testing, a photo resistor and a inverter logic I could achieve this goal.

Items:

  • 1x 74HC04N ( hex logic )
  • 1x photo resistor
  • few resistors ( 10-22k )
  • 1x transistor n-channel
  • 1x led
  • 1x battery 5v
  • few jumpers

Wiring:



Connect the battery to the VCC and Ground of your Inverter logic.
The photoresistor needs to be connect to 5v on one pin and the other needs a resistor 10-22k to the ground and a jumper to the Input 1 on your Inverter logic. The resistor has to be tested on the final circuit because based on it, the system trigger the transistor when is very dark or less dark.
Connect the output 1 on the gate of your transistor, the drain to the led and the source on the ground. Remember to bridge the gate and source with 10k!
Complete everything by connecting the other pin of the led to the 5v, better to put a resistor if you dont want burn it.

After all this is done, try to cover it or switch off your light, you should see the led lighting up, if it doesn't work, try with something less than 10k.


Video:



Monday, 21 October 2013

Blinking leds with 555 timer

Intro:
I was looking for something that could make some leds blinking, but my head always ended up with some Arduino stuff.
I had to move my challenge to the next level, forget about the helpful Arduino and move to the real electronic way!
After few hours of research I came up with the 555 timer solution, simple, clean and cheap.

Items:

  • 555 Timer
  • Capacitor ( try to get a few from 10 to 100 uF )
  • Resistor 
  • Leds
  • Battery

Wiring:


The diagram above is the simplest one that I found in the internet, it shows how to connect the 3 resistors, capacitor and led.

Tweaking:
Here we go, now we have our flashing system but you have to tweak it a little bit because the flashing delay is too higher or lower for your project.
Change the capacitor with something higher than 100 uF to increase the delay or something lower to decrease the delay. 

Here an example:
100 uF = 2 flash per seconds
10 uF = 10 flash per seconds 
These are just "fake" information, but you can have an idea which capacitor you have to use for your project!

The brightness of the led can be changed by using the current resistor on R3, maybe 1K is too higher for your type of light.

The flashing delay can be adjust by changing the R1 and R2 with lowers values, but be careful, better have a look on the internet and calculate the right ones!

Sunday, 20 October 2013

Smoking Pumpkin


Items:

  • Pumpkin
  • Tray ( the right size of your pumpkin )
  • Glycerin
  • Water de-ionized 
  • Tea lights
  • Nails

Construction:


  1. Get a Pumpkin and create your scary face and cut the top to have access to the inside



  2. Put 4 nails on the inside of your Pumpkin, the position of each has to be good for your tray, so make sure that is not too far.
  3. Put as many as tea lights you can fit, more there are, less time you have to wait to get some smoke
  4. Get your Tray and put 60% Glycerin and 40% Water to have good and thick smoke.
    If smoke is too thick, reduce the amount of Glycerin and add more water, you should try until you find out what is the best for you.
    Better if you close the Pumpkin, so the heat doesn't go away.
  5. Place your Pumpkin smoking outside in the dark and enjoy the smoke effect!




Reference:


Sunday, 13 October 2013

Happy Birthday Box

Intro:
I had to buy a present for a my friend but I didn't want to come up with something useless and out-fashion, so I thought to use my skills in electronic to build something different.
My mind made some wired ideas and I ended up with a "Happy Birthday box".

What Does It Do?
The Happy Birthday Box is a simple project where a small Arduino, LCD Screen, Buzzer and a battery are used to wish Happy Birthday with sound and text.
I had to mount a little switch to turn on the whole system, nobody wants the infinite Happy Birthday song on his house :)

Hardware:
I ordered these items:

  • Arduino mini ( you can use any Arduino
  • LCD Screen ( 16x2 )
  • Buzzer
  • Booster battery ( from 3.7 to 5v )
  • Battery 3.7 850mah
  • Roller switch

Wiring:

LCD:
This is a pretty simple way to wiring the LCD screen, they are all the same, the only issue that I have seen so far is to choose the right resistor for the contrast.
I have seen tutorials tell me to use 10 ohm but in my case I couldnt use this one, I had to increase to 600 ohm to actually read something on the screen. So be careful, if you dont read what you are trying to display, is not always a wiring problems! 

I just redirect to this nice guide how to wiring your LCD: http://arduino.cc/en/Tutorial/LiquidCrystal
If you want to get rid of the potentiometer, just put try to put some resistant from pin RS ( LCD ) to GND ( LCD ).
Also to light up the back light of the screen, just solder the penultimate pin to 5V and the last pin to the ground with 100 ohm ( usually is written + and - in the back ).
   

Buzzer:
Very simple, just attach the ground and the other cable to one of the pin.

Code:
Very simple and "clean" ( I hope ), I haven't written the melody part, I just got from internet:

Tuesday, 8 October 2013

Use Serial Port to access on your Raspberry Pi

Intro:
I was working on my personal project  where I couldn't attach a Ethernet cable to check what was going on or just check the status of my Raspberry Pi.
I knew that I could the pins TX and RX with a USB Serial port, so I got one and I started to use  as debug system.

Hardware:
You need a simple USB Serial port, you can get the cheap one here or you can get something "branded" on your usual electronic shop.

Wiring:
Connect the BLACK pin to the GROUND, the GREEN to the RX and the WHITE to TX.
If this combination wont work, just swap the GREEN and WHITE, it might be different from my adapter.

I never connect the red because your Raspberry is already powered from the usb port, so to avoid any problems, dont connect it!

Connection:
Everything is ready to communicate with your Raspberry Pi via Serial port, what you need to start, is a Terminal software, you can use GTK Terminal, Putty or whatever you prefer.

Open your software, select the right port, set the baud at 115200 and then you should see texts coming up on your terminal.