User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mission:log:2014:02:08:playing-with-my-pigi-jamest42 [2014/02/09 11:22] chronomission:log:2014:02:08:playing-with-my-pigi-jamest42 [2014/02/14 19:36] (current) – fix in program code comments jamest
Line 3: Line 3:
 Some time ago i stumbled upon the [[lab:pigi|PiGI]] project, joined the chatroom and somehow convinced chrono to send me a prototype board. Thanks for that! So here will be a summary of my testing of the PiGI. Some time ago i stumbled upon the [[lab:pigi|PiGI]] project, joined the chatroom and somehow convinced chrono to send me a prototype board. Thanks for that! So here will be a summary of my testing of the PiGI.
  
--Picture 1327 here-+{{ :mission:log:2014:02:08:pigi-jamest42.jpg?200 |}}
  
 ===== 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 -+{{ :mission:log:2014:02:08:sbm-20.jpg?200 |}}
  
 ===== 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 -+{{ :mission:log:2014:02:08:adapter-back.jpg?200 |}} {{ :mission:log:2014:02:08:adapter-front.jpg?200 |}}
  
 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 -+{{ :mission:log:2014:02:08:pigi-arduino-pi.jpg?200 |}}
  
 I compiled the software examples you can find [[lab:pigi:software|here]] and got it to work, but right now I can't even remeber how LOL I focussed more on the Arduino stuff below. I compiled the software examples you can find [[lab:pigi:software|here]] and got it to work, but right now I can't even remeber how LOL I focussed more on the Arduino stuff below.
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 -+{{ :mission:log:2014:02:08:pigi-arduino-breadboard.jpg?200 |}}
 ==== Simple Beeper ==== ==== Simple Beeper ====
 <sxh c; toolbar:false> <sxh c; toolbar:false>
Line 50: Line 50:
    /*    /*
   Activating the Interrupt: If the signal on Pin 2 drops below the threshold "FALLING",   Activating the Interrupt: If the signal on Pin 2 drops below the threshold "FALLING",
-  the function Interrupt() is called+  the function CountInterrupt() is called
    */    */
   attachInterrupt(0, CountInterrupt, FALLING);   attachInterrupt(0, CountInterrupt, FALLING);
Line 104: Line 104:
    /*    /*
   Activating the Interrupt: If the signal on Pin 2 drops below the threshold "FALLING",   Activating the Interrupt: If the signal on Pin 2 drops below the threshold "FALLING",
-  the function Interrupt() is called+  the function CountInterrupt() is called
    */    */
   attachInterrupt(0, CountInterrupt, FALLING);   attachInterrupt(0, CountInterrupt, FALLING);
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://www.sparkfun.com/tutorials/132|This Sparfun tutorial for the principles.]]+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://www.sparkfun.com/tutorials/132|this Sparfun tutorial for the principles]] or [[http://www.ciphergoth.org/crypto/unbiasing/|this page]].
  
 <sxh c; toolbar:false> <sxh c; toolbar:false>
Line 222: Line 222:
 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>pigi raspberry pi hardware arduino random software}}+{{tag>pigi raspberry pi hardware arduino random software research}}
  
 {{keywords>Apollo-NG apollo next generation hackerspace hacker space research development makerspace fablab diy community open-resource open resource mobile hackbus pigi raspberry pi hardware arduino random software}} {{keywords>Apollo-NG apollo next generation hackerspace hacker space research development makerspace fablab diy community open-resource open resource mobile hackbus pigi raspberry pi hardware arduino random software}}
  
 ~~DISCUSSION~~ ~~DISCUSSION~~