11 december 2014

3D odlitek

Trenutno stanje
Postavitev elementov
3d izgled elementov
Odtis elementov v matrico
Komplet elementi v matrici
Izgled pred tiskom v MakerBot Desktopu
3D tiskalnik na delu


Končano!
Pri izdelavi je treba u poštevati +0.5mm tolerance.

05 december 2014

Raspberry Pi


Dioda 1cm RGB (dx) vse v enem ohišju

#!/usr/bin/env python from time
import sleep
import os import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(14, GPIO.OUT) GPIO.setup(15, GPIO.OUT) GPIO.setup(18, GPIO.OUT) print "Start" GPIO.output(14,GPIO.LOW) GPIO.output(15,GPIO.HIGH) GPIO.output(18,GPIO.HIGH) while True: print "Zanka" GPIO.output(14,GPIO.LOW) GPIO.output(15,GPIO.HIGH) GPIO.output(18,GPIO.HIGH) sleep(0.5); GPIO.output(14,GPIO.HIGH) GPIO.output(15,GPIO.LOW) GPIO.output(18,GPIO.HIGH) sleep(0.5); GPIO.output(14,GPIO.HIGH) GPIO.output(15,GPIO.HIGH) GPIO.output(18,GPIO.LOW) sleep(0.5);

13 november 2014

Raspberry Pi Termometer

Vezava po sliki
Termometer je kupljen pri katajcu DS18B20 že z uporom. Pri nas je sam senzor cca 4€. Samo povežeš na ustrezen gpio in dela. Podatek parsaš po potrebi.

na rpi zaženeš:
pi@rpi2 ~ $ sudo modprobe w1-gpio
pi@rpi2 ~ $ sudo modprobe w1-therm
pi@rpi2 ~ $ cd /sys/bus/w1/devices
pi@rpi2 /sys/bus/w1/devices $ ls
28-001411944dff  w1_bus_master1
pi@rpi2 /sys/bus/w1/devices $ cd 28-001411944dff
pi@rpi2 /sys/bus/w1/devices/28-001411944dff $ cat w1_slave
b6 01 55 00 7f ff 0c 10 35 : crc=35 YES
b6 01 55 00 7f ff 0c 10 35 t=27375
pi@rpi2 /sys/bus/w1/devices/28-001411944dff $


Temp=27.375C

Miske

Trojane zurka

30 september 2014

Google Chromecast

Spremeniš dummy tv  v smart :)

Rpi termometer


output 
2014-10-03 09:53 (25.625, 78.125)
2014-10-03 09:54 (25.625, 78.125)
2014-10-03 09:55 (25.687, 78.23660000000001)
2014-10-03 09:56 (25.812, 78.4616)
2014-10-03 09:57 (25.875, 78.575)
2014-10-03 09:58 (26.0, 78.8)
2014-10-03 09:59 (26.187, 79.1366)
2014-10-03 10:00 (26.312, 79.36160000000001)
2014-10-03 10:01 (26.437, 79.5866)
2014-10-03 10:02 (26.5, 79.7)
2014-10-03 10:03 (26.562, 79.8116)
2014-10-03 10:04 (26.687, 80.0366)
2014-10-03 10:05 (26.687, 80.0366)
2014-10-03 10:06 (26.75, 80.15)
2014-10-03 10:07 (26.812, 80.2616)

Dodatni ds1820 pa se vežejo vzporedno. Med 2 in 3 je 10kE upora.
Povezava: 1=GND,2=GPIO4,3=Vcc
Enkrat je bil rpy neodziven. Root user je bil lockan. Iz postavljene konzole poženeš fschk in potem je zopet ok.

Rpy upgrade

Meritev ultrasonic, napetost, temperatura, prisotnost solar.