UKHAS Wiki

UK High Altitude Society

User Tools

Site Tools


projects:jimbob:promini

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
projects:jimbob:promini [2012/11/18 18:16] – [Further Reading] kevwalprojects:jimbob:promini [2012/12/07 17:10] (current) – [Connections] kevwal
Line 34: Line 34:
 The UKHAS Guide to the RFM22b is [[guides:rfm22b|here]] The UKHAS Guide to the RFM22b is [[guides:rfm22b|here]]
  
-The Hope FM Mfg product page, with links to application notes is: [[http://www.hoperf.com/rf_fsk/fsk/RFM22B.htm|here]]  Pinout Diagrams are on page 61.+The Hope FM Mfg product page, with links to application notes is: [[http://www.hoperf.com/rf/fsk/RFM22B.htm|here]]  Pinout Diagrams are on page 61.
  
 Note Frequency range legally available is 434.04MHz - 434.79MHz according to IR2030. Note Frequency range legally available is 434.04MHz - 434.79MHz according to IR2030.
 +
 +Now using radio1.write(0x73,0x03); // High and radio1.write(0x73,0x00); // Low in rtty_txbit, gives a much tighter signal.  Detailed here: http://ava.upuaut.net/?p=408 Thanks to Dave Akerman suggested (as recommended by Navrac)
 ===== Assembled uBLOX MAX-6 Pico Breakout with Chip Scale Antenna ===== ===== Assembled uBLOX MAX-6 Pico Breakout with Chip Scale Antenna =====
  
Line 51: Line 53:
   * Arduino Pro Mini, GND -> RFM22B, GND (ground in)   * Arduino Pro Mini, GND -> RFM22B, GND (ground in)
   * Arduino Pro Mini, Pin D3 -> RFM22B, SDN (shutdown in)   * Arduino Pro Mini, Pin D3 -> RFM22B, SDN (shutdown in)
-  * Arduino Pro Mini, pin 7 -> RFM22B, VCC (3.3V in)+  * Arduino Pro Mini, VCC -> RFM22B, VCC (3.3V in)
   * Arduino Pro Mini, Int 0 pin D2 -> RFM22B, NIRQ (interrupt request out)   * Arduino Pro Mini, Int 0 pin D2 -> RFM22B, NIRQ (interrupt request out)
   * Arduino Pro Mini, SS pin D10   -> RFM22B, NSEL (chip select in)   * Arduino Pro Mini, SS pin D10   -> RFM22B, NSEL (chip select in)
Line 65: Line 67:
   * Arduino Pro Mini, pin 0 RX -> Max-6, TX   * Arduino Pro Mini, pin 0 RX -> Max-6, TX
   *    * 
 +
 +===== Code =====
 +
 +The Code lives here:  [[https://github.com/KevWal/ProMini|https://github.com/KevWal/ProMini]]
 +
 +===== Testing =====
 +
 +In the warm office, Signal rx'ed loud and clear on 434.190.700 Mhz rather than the set 434.201 Mhz
 +
 +Sentence is: $$PROM,2,000010,0.000000,0.000000,0,0,25,42*63B0
 +
 +which is: %%PROM, id, time, lat, lon, alt, sats, vinmv, rfm_temp*CHECKSUM
 +
 +RTTY 50 Baud, 480 Hz Shift, 7 Bits, No Parity, 2 stop bits
 +
 +
 +===== Habhub Payload Config =====
 +
 +Using the form [[http://habitat.habhub.org/genpayload/|here]] I generated a payload config:
 +
 +Payload Name: G7PMO $$PROM
 +
 +Primary, 434.175, USB, RTTY, 480, ASCII-7, 50 Baud, Parity none, 2 Stop bits.
 +
 +{"type":"payload_configuration","name":"G7PMO $$PROM","time_created":"2012-11-18T22:25:32+00:00","metadata":{"description":"G7PMO's ProMini Tracker"},"transmissions":[{"frequency":434201000,"modulation":"RTTY","mode":"USB","encoding":"ASCII-7","parity":"none","stop":2,"shift":480,"baud":50,"description":"Primary"}],"sentences":[{"protocol":"UKHAS","callsign":"PROM","checksum":"crc16-ccitt","fields":[{"name":"sentence_id","sensor":"base.ascii_int"},{"name":"time","sensor":"stdtelem.time"},{"name":"latitude","sensor":"stdtelem.coordinate","format":"dd.dddd"},{"name":"longitude","sensor":"stdtelem.coordinate","format":"dd.dddd"},{"name":"altitude","sensor":"base.ascii_int"},{"name":"satellites","sensor":"base.ascii_int"},{"name":"battery","sensor":"base.ascii_int"},{"name":"temperature_internal","sensor":"base.ascii_int"}],"filters":{"post":[{"filter":"common.numeric_scale","factor":0.001,"round":3,"source":"battery","type":"normal"},{"filter":"common.invalid_gps_lock","ok":[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],"source":"satellites","type":"normal"}]},"description":"$$ProM Std format"}]}
 +
 +Doc ID: 7ca1c7874831f6e8a0616ca98add1600
 +
 +Note the filter I use to identify if I have a satellite fix "{"filter":"common.invalid_gps_lock","type":"normal","ok":[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],"source":"satellites"}"
 +
 +I should really implement another variable in the sentence to define lock directly for the PUBX code, but I am told the above should do what I want it to do.
 +
 +
  
  
 ===== Further Reading ===== ===== Further Reading =====
 +
  
 Inspired by: http://www.daveakerman.com/?p=310 Inspired by: http://www.daveakerman.com/?p=310
Line 80: Line 116:
 https://github.com/jamescoxon/PicoAtlas https://github.com/jamescoxon/PicoAtlas
  
-Use Frequency shift register:  http://ava.upuaut.net/?p=408 
- 
-<code>void rtty_txbit (int bit) 
-{ 
-  if (bit) 
-  { 
-    radio1.write(0x73,0x03); // High 
-  } 
-  else 
-  { 
-    radio1.write(0x73,0x00); // Low 
-  } 
-}</code> 
  
  
 More RFM22b code to look at: https://github.com/jamescoxon/Eurus/blob/master/70cmTracker/MainCode/MainCode.ino More RFM22b code to look at: https://github.com/jamescoxon/Eurus/blob/master/70cmTracker/MainCode/MainCode.ino
projects/jimbob/promini.1353262617.txt.gz · Last modified: 2012/11/18 18:16 by kevwal

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki