This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
mission:log:2014:02:08:playing-with-my-pigi-jamest42 [2014-02-08 14:21] – created the mission log jamest | mission:log:2014:02:08:playing-with-my-pigi-jamest42 [2014-02-14 19:36] (current) – fix in program code comments jamest | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | Some time ago i stumbled upon the PiGI project, joined the chatroom and somehow convinced | + | Some time ago i stumbled upon the [[lab:pigi|PiGI]] project, joined the chatroom and somehow convinced |
- | -Picture 1327 here- | + | {{ : |
===== The Geiger-Mueller-Tube ===== | ===== The Geiger-Mueller-Tube ===== | ||
Line 9: | Line 9: | ||
I bought an old russian SBM-20 tube on ebay for 26$ and soldered some cable to both ends and isolated the ends with heat-shrink tubing. Then i soldered it to my PiGI with some leads that I thougt had sufficient isolation for high voltages. | I bought an old russian SBM-20 tube on ebay for 26$ and soldered some cable to both ends and isolated the ends with heat-shrink tubing. Then i soldered it to my PiGI with some leads that I thougt had sufficient isolation for high voltages. | ||
- | -Picture 1332 - | + | {{ : |
===== The PiGI and my Pi ===== | ===== The PiGI and my Pi ===== | ||
Line 16: | Line 16: | ||
But I also came up with some other possibilities. To connect the PiGI to a breadboard (and Arduino and stuff) I soldered my own breadboard-adapter. | But I also came up with some other possibilities. To connect the PiGI to a breadboard (and Arduino and stuff) I soldered my own breadboard-adapter. | ||
- | -Picture 1338 1340 - | + | {{ : |
And if you build two and get a ribbon cable, you can also connect your PI to the breadboard. | And if you build two and get a ribbon cable, you can also connect your PI to the breadboard. | ||
- | -Picture 1342 - | + | {{ : |
I compiled the software examples you can find [[lab: | I compiled the software examples you can find [[lab: | ||
Line 28: | Line 28: | ||
Connecting the PiGI to an Arduino (or other microcontroler) is easy. Just connect 3.3V to pin 1, 5.0V to pin 2, GND to pin 25, and connect the interrupt D2 of the Arduino to pin 7 of your PiGI. | Connecting the PiGI to an Arduino (or other microcontroler) is easy. Just connect 3.3V to pin 1, 5.0V to pin 2, GND to pin 25, and connect the interrupt D2 of the Arduino to pin 7 of your PiGI. | ||
- | - Pic 1344 - | + | {{ : |
==== Simple Beeper ==== | ==== Simple Beeper ==== | ||
<sxh c; toolbar: | <sxh c; toolbar: | ||
Line 50: | Line 50: | ||
/* | /* | ||
Activating the Interrupt: If the signal on Pin 2 drops below the threshold " | Activating the Interrupt: If the signal on Pin 2 drops below the threshold " | ||
- | the function | + | the function |
*/ | */ | ||
attachInterrupt(0, | attachInterrupt(0, | ||
Line 104: | Line 104: | ||
/* | /* | ||
Activating the Interrupt: If the signal on Pin 2 drops below the threshold " | Activating the Interrupt: If the signal on Pin 2 drops below the threshold " | ||
- | the function | + | the function |
*/ | */ | ||
attachInterrupt(0, | attachInterrupt(0, | ||
Line 137: | Line 137: | ||
==== Generating random numbers (proof-of-concept) ==== | ==== Generating random numbers (proof-of-concept) ==== | ||
- | Recently, i visited a lecture about computer physics, and when we discussed different random number generators I had the idea to implement a random number generator based on radioactive decay. See [[https:// | + | Recently, i visited a lecture about computer physics, and when we discussed different random number generators I had the idea to implement a random number generator based on radioactive decay. See [[https:// |
<sxh c; toolbar: | <sxh c; toolbar: | ||
Line 221: | Line 221: | ||
</ | </ | ||
To improve the program, you should switch the logic of what is 0 and 1 every time. That can be accomplished by changing to modulo 8 and copying cases 0/1/2 to 4/5/6 and switching the 0/1 in case 3 to be case 7. | To improve the program, you should switch the logic of what is 0 and 1 every time. That can be accomplished by changing to modulo 8 and copying cases 0/1/2 to 4/5/6 and switching the 0/1 in case 3 to be case 7. | ||
+ | |||
+ | {{tag> | ||
+ | |||
+ | {{keywords> | ||
+ | |||
+ | ~~DISCUSSION~~ |