Just Sharing Knowledge on Robotics, Electronics and Programming

Monday, March 6, 2017

No module named cv2 in Linux / Orangepi / Raspberry Pi



Masukkan Kode Disini



If you facing the experience of using cv2 module like this

import cv2
ImportError: No module named cv2
 
 
then the solution is like a following command on terminal
 
sudo apt-get install python-opencv
 
 
 

Sunday, March 5, 2017

Resize file system on SD card on Orange Pi PC Linux


if u facing the experience of the disk space is lower than the actual size of SD card  used in orangepi PC, then you can do the following trick



First

$ fdisk -l

and you should know the partition name...

and in my case..

$ fdisk -c /dev/mmcblk0

input 'p'

and show information of partition...

may be.....taget partition is 2.....

input "d"       -> deldet partition....

input "2"      -> target delete partition...

ipput "np"     -> set new partition information...

input "p"      ->set primary

input "2"     -> target partition...

and input first sector number.......
(above...you type "fdisk -l" and find that number ( /dev/mmcblk0p2 's start number )

and request last sector....and push enter key....

and input "w"    ->write partiotion information....

System show error ....ignore....

$ reboot

$ resize2fs /dev/mmcblk0p2

$ df- h

done

Sunday, February 19, 2017

[Solved] New NRF24L01 Transceiver Not Works


NRF24L01  is low cost transmitter that can be used in arduino through SPI interface, the price of this device is only $0.95 in Indonesia , this device uses 3.3V power supply which can be obtained from 3.3V pin on arduino.

If you Bought this device, maybe you will get the experience that this device not works, although your program seemed correct. This problem is make me confused, because i bought six pcs NRF24L01  and none of them are work.

Then i found the solution from the forum ( Sorry i forgot the link) that says that we must add 10uF capacitor on Vcc and Ground.. this is caused by the noise of Power supply when transmitting prosess. After i put the capacitor.. NRF24L01 is works perfectly..