Archive

Archive for January, 2009

Arduino + temperaturni senzor + LCD – finished

January 29th, 2009

Dans mi je ratal do konca popedenat senzor, pa zjutri me je še kurir zbudu, k mi je prnesu serijski LCD (white on black), in seveda je blo treba sprobat use skupi :) )

LCD ma sicr zanimiv bug/feature, in to je da newline (“\n”) ne dela… niti ne windowsaski (“\n\r” niti ne “\r\n”), tako da je treba za premik v novo vrstico uporabljati absolutno pozicijo kurzorja, ampak se da brez problema to zapakirat v kako funkcijo tipa “newline()”. In ker je LCD serijski, porabilo za komuniacijo le en pin… V kombinaciji z SoftwareSerial pa imamo še vedno čisto enostavno komunikacijo tudi z računalnikom. Izgleda pa precej lepo… edino backlight LED-ica ob strani malo preveč sveti, a če bi bilo zapakirano v škatlico, se ne bi videlo :)

dsc00063

Seveda temperaturo bi treba zaokrožiti na celo stopinjo (ja len sm…).

PS: Arduino je priklopljen na 230vac->5vdc usb adapter… torej dela brez računalnika :D

elektro stuff , ,

DS1822 temperaturni senzor in Arduino

January 29th, 2009

Od maxima sem dobil sample DS1822 temperaturnega senzorja, in seveda ga je blo treba sprobat :)

ds1822

Kaj je zanimivo na tem senzorju? Senzor deluje po 1-Wire protokolu… torej za razliko od NTC zadev in raznih termistorjev, je vse skupaj digitalno, in za komunikacijo potrebuje le eno ćico, ki deluje tudi kot neke vrste BUS. Torej je na isto žico možno priključiti več senzorjev (nisem še poskusil, mogoče bom), ali drugi naprav, ki delujejo po 1-wire protokolu, in vsako posebej klicati, in od nje zahtevati podatke, ali pa z njo početi kaj drugega. Torej na isto žico lahko prikljuimo več različnih senzorjev, kak eeprom spomin, ali pa kaj še bolj eksotičnega, in z enim kontrolerjem  ob poljubnih trenutkih uporabljamo poljubno napravo (vsaka ima svoj naslov, “master” je pa lahko samo en).

Na strani od Arduina je že spisana knjižnica OneWire, in tudi sample koda, kjer je treba spremeniti le naslov družine senzorjev iz 0×10 v 0×22, in bo koda delovala tudi za ta senzor.

Kaj naprej? Najti moram še kako škatlico od filma (le gdo bi si mislil da bo to težko, a je žal nimam nobene pri roki), in spraviti senzor čez okno, ter po moćnosti izrisati še kak graf spreminjanja temperature :)

Ps: temperatura v moji sobi je trenutno ~21˚c :D
Pps: ja vem da zgleda grdo ploščica, ampak odlomu se mi je glih prov velik košček petrinaksa, pa mi ga je bilo žal vržti stran :)

elektro stuff , , , ,

Simple Data Encryption – Phrack #11 – 17. 2. 1987

January 26th, 2009

Pred nekaj dnevi sem gledal dokumentarec o pravih old-school hackerjih (a sploh še kdo pozna razne box-e? bluebox, redbox, white box?), in šel malo brskat po starih izvodih Phrack-a1. Tukaj je primer zelo(!) enostavne “enkripcije”, ki je takrat mogoče celo bila uporabna :)

                               ==Phrack Inc.==

Volume Two, Issue Eleven, Phile #5 of 12

{Simple Data Encryption}
<or digital electronics 101>
By:{The Leftist}

Prologue:

Well, it's been awhile since I've done one of my activities files. This time
I've switched from chemistry to electronics. Hopefully, I will be writing
more files similar to this one. Also, I have devised a more sophisticated
encryption device, which I may release in the future

Do you run a BBS, living in fear that the "feds" are gonna log on, and fool
you into giving them a password? Do you wish that you could limit exactly WHO
logs onto your board? Well, this file is just for you..

Parts:

1:9 volt battery

1: 74hc/hct04 cmos hex inverter <about .50 cents>

Some basic knowledge of electronics might help, and some wire would be helpful
too. If you want to be fancy you can even splurge and get a 9 volt connector.

Note: Although it is not required that you put this on an etched PC board, you
can do this quite easily, and it makes for a much cleaner job.

Ok, the basic idea behind this scheme is this:

Data coming to and going from your modem is translated as 1's and 0's. This
represents highs and lows, which translate out to code which your computer
recognizes as valid data. Now, if you could switch all those 1's to 0's, and
0's to 1's, then you would have a simple way of encrypting your data. That's
exactly what the hex inverter does. If it sees a 0, it makes it a 1. If it
sees a 1, it makes it a 0. So, what you want to do is have an inverter on your
send line, and an inverter on your receive line. The computer you are
connected to must also have inverters on its send and receive, or all you will
see will be garbage! I tried to be as non-technical as possible in this for
all you non-technical types out there.
Connections:

Hold the chip, and look at it. There should be a little notch in one end. Hold
it as illustrated in the schematic:

(80 columns)
______________________________
|                             |
14 13 11 12 10 9 8             |
|  |  |  |  | |  |            |
__________________            |
|                  |           |_ to positive on battery
\   74hc/hct04     |
/                  |
|__________________|             to negative on battery
|  |  |  |  |  | |              |
1  2  3  4  5  6 7______________|
|  |  |  |
|  |  |  |_________________________________to computer port
|  |  |_______________________________from modem
|  |________________________________________________to modem conn.
|________________________________________________ from computer port
<all other pins are not connected>
Ok, hook the + 9volts up to pin 14, and the negative up to pin 7.
There are 6 inverters on this chip. For this, we will be using only 2 of them.

Find the wire coming from your computer to the send data line on your modem.
Sever this wire, and hook one side of it to pin 1. Hook the other end of it to
pin 2. Next, find the receive data line, and sever it. Hook one end of it to
pin 3, the other end to pin 4. That's about it.. if you want to use the other
inverters on the chip, here's the complete pinouts.

Pin#            Name and function
----            -----------------
1,3,5,9,11,13   Data inputs
---------------------------------
2,4,6,8,10,12   Data outputs
---------------------------------
7               Ground
---------------------------------
14              VCC
---------------------------------

Remember, that your BBS modem must have one of these devices on it, as well as
the user calling. I have tested this on Smartmodems, and it does work. If you
have an internal modem, this may be a little difficult for you.
  1. beri: moral bi se učiti elektromagnetiko, a je to bolj zabavno… če ne naredim bom tudi vedel zakaj ne

geek stuff , ,

10W “feršt” z TDA2003 – RK

January 24th, 2009

Na dnu enega izmed predalov sem našel RadioKlub KIT, ki sem ga pomojm dobil nekje zastonj (ker se ne spomnim da bi ga kdaj kupil).

Kit vsebuje ploščico, nekaj kondenzatorjev in uporov, ter integrirani ojačevalnik TDA2003. Ploščica je velika 4×5cm.

Sicer najbrž ni kaj preveč uporabna igračka, ampak mogoče ji bo pa uspelo spraviti zvok iz mp3 playerja spraviti na malo večji zvočnik (ja mono je… žal).

dsc00041

Ko/če zlotam skupi, in če bo igračka delala, bom napisal še moje vtise (predvsem o kvaliteti in realnosti teh “10W” moči.

ps: sestavu sm ga.. testirat se mi pa dans ne da

dsc00042

elektro stuff ,

Plin

January 18th, 2009

Klik za video

plin1

Jap… plin res postaja čuden… Še včeraj je bil plamen popolnoma modre barve.. danes pa je tak… Sicer ne vem a je tko sam pr ns, al še kje, sam še zmer je sumnjivo :)

No ja.. upajmo da se bojo Rusi pa Ukrajinci kmal dogovoril :)

  1. ja vem da je gif.. pa kaj :D pa sori za napis v videu… ponesrec blo.. avidemux ma probleme :D

crap

Natečaj za naj računalniško retro majico

January 17th, 2009

Kje ste zdj dizajnerji pa artisti? Kiberpipin računalniški muzej išče dizajn za majco (ki bi jo tud jst rad meu), tko da… clicky clicky na link:

racunalniski muzej, spam , , ,