Posts

Program ATtiny13A via Arduino board

Programming ATtiny micro-controller is quite easy if you have all the needed information in one place. That is the reason to put all needed files, hints in one post so next time I will need it, there is no need to google it again from various sources. At the same time I hope, this post will be useful also to someone else trying to program ATtiny13A.

Wiring Arduino Uno with ATtiny13A

There is quite uses full post describing the wiring of arduino UNO with ATtiny13A. LED with resistor is added to test the basic blink test from Arduino IDE.

Kippo honeypot on Cubieboard Ubuntu

Kippo is an SSH honeypot written in Python. Kippo is used to log brute force attacks and the entire shell interaction performed by an attacker so I have installed it on my cubieboard2 Lubuntu version. According to wiki a honeypot is a trap set to detect, deflect, or, in some manner, counteract attempts at unauthorized use of information systems.

So lets start to install and test my first honeypot.

Mini Solar Panel and Battery Charger Test

The sun is shining for free out there so why not to use it at least to charge the cell phone. I’ve searched cheep but usable solar panel for this purpose and tested it.

Specification of the solar panel from eBay for 8€:

  • Voltage: 6 v
  • Power:3.5W
  • Electric current: 580-600mA
  • output:USB 2.0
  • Net weight: about 110g
  • Size: 16.5 * 13.5 *0. 2cm
  • Application: fit for all the electronic products charging (iphones,all mobile phones, MP3 MP4 PDA and Tablets ect.)

The notice is marked:
This device can not store electricity, but only can charge your cell phones in the sun and this item must be under the strong light , otherwise the voltage is very small and many smart phones have battery protection so it can’t charge it.

Simple Low Voltage Disconnect Circuit for Arduino

I have read several forums regarding the disconnecting the Arduino power from the Lithium Ion battery by itself (measuring the battery voltage and when the low limit is reached the Arduino signal turns off itself).

Ubuntu – data stored in RAM filesystem – TMPFS

In my Cubieboard2 I use Lubuntu. Since I have connected barometer and arduino to my cubieboard, I read data from that devices and store it to cubieboard2 filesystem. Since NAND memory is not quite suitable for such frequent changes because of wear-out of the memory cells over time, I’ve created temp space in RAM memory. Cubieboard2 has 1GB DDR memory so there is some space for it.


I will use TMPFS and not older RAM disks – ramfs. Tmpfs is supported by the Linux kernel from version 2.4 and up. On reboot, everything in tmpfs will be lost. The memory used by tmpfs grows and shrinks to accommodate the files it contains and can be swapped out to swap space.
To get more comprehensive info regarding those filesystems read this post or this post.

Cubieboard power usage with SATA

I have installed lubuntu to my Cubieboard2 and I have also connected a 2.5” SATA HDD. I wanted to know if my power supply is providing enough power so I tried to measure current output from 5V power supply.

I used cheap small USB power meter (find also some on eBay for less then 5€).

charger doctor - USB volat and amper meter

My results varies according to HDD usage:

DLNA media server on Cubieboard with Lubuntu

I have installed Lubuntu on my new Cubieboard 2. I have also attached HDD to SATA so I have more space to store my media. This posts describes the steps needed to install and configure media server to share my media to other devices (media players). I spent some time to select the right one and chose minidlna tool (also known as ReadyMedia, lightweight DLNA/UPnP-AV server targeted at embedded systems).

According to Ubuntu documentation the MiniDNLA daemon serves media files (music, pictures, and video) to clients on a network. Example clients include applications such as totem and xbmc, and devices such as portable media players, smartphones, and televisions.
MiniDLNA is a simple, lightweight alternative to MediaTomb, but has fewer features. It does not have a web interface for administration and must be configured by editing a text file.

Mount SATA drive in Cubieboard with Lubuntu

The main advantage of cubieboard is it’s SATA connector. I have old HDD from notebook, so I wanted to use it as a media server.

This post has 3 parts related to HDD connected to Cubieboard2 with lubuntu:

  • Mounting HDD
  • Backup NAND
  • Spin down HDD


There are many ways to see all disks and partitions but my favorite command is lsblk:

sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME        FSTYPE   SIZE MOUNTPOINT LABEL
sda                149.1G
nand                 3.7G
|-nanda     vfat      64M            Volumn
`-nandb     ext4     3.6G /
mmcblk0              241M
`-mmcblk0p1 vfat     241M            SSD

or also fdisk:

I2C on Cubieboard with Lubuntu

I2C bus is used by many integrated circuits and is simple to implement. Any microcontroller can communicate with I2C devices even if it has no special I2C interface so I wanted to enable I2C also in my Cubieboard2 to get direct access to sensors.