Modifications

Sauter à la navigation Sauter à la recherche
Ligne 44 : Ligne 44 :  
|-
 
|-
 
| MOSI
 
| MOSI
| GP7 (Miso)
+
| GP7 (Mosi)
 
|-
 
|-
 
| MISO
 
| MISO
| GP4 (Mosi)
+
| GP4 (Miso)
 
|-
 
|-
 
| SCK
 
| SCK
Ligne 84 : Ligne 84 :  
Finally wire the RFM69HCW radio as follows
 
Finally wire the RFM69HCW radio as follows
   −
[[Fichier:ENG-CANSAT-PICO-RFM69HCW-to-Cansat-Pico-Base.jpg|640px]]
+
[[Fichier:ENG-CANSAT-PICO-RFM69HCW-to-Cansat-Pico-Base-fixed.jpg|640px]]
    
{| class="wikitable"  
 
{| class="wikitable"  
Ligne 103 : Ligne 103 :  
| keep the same pin as receiver.<br />Otherwise use UEXT 10 (=gp10)
 
| keep the same pin as receiver.<br />Otherwise use UEXT 10 (=gp10)
 
|-
 
|-
| MOSI
+
| MISO
 
| 7
 
| 7
 
|  
 
|  
 
| GP4 = MISO
 
| GP4 = MISO
 
|-
 
|-
| MISO
+
| MOSI
 
| 8
 
| 8
 
|  
 
|  
Ligne 132 : Ligne 132 :  
The code is available for download on the [https://github.com/mchobby/cansat-belgium-micropython GitHub associated to this wiki].
 
The code is available for download on the [https://github.com/mchobby/cansat-belgium-micropython GitHub associated to this wiki].
   −
{{download-box|Téléchargez Mission1 Cansat Emitter script (cansat.py)|https://raw.githubusercontent.com/mchobby/cansat-belgium/master/mission1/cansat.py}}
+
{{download-box|Téléchargez Mission1 Cansat Emitter script (cansat.py)|https://github.com/mchobby/cansat-belgium-micropython/blob/main/mission1/cansat.py}}
    
Without any comments, extra lines and print statement (used to debug), the script makes 33 lines long for the full fledged features.
 
Without any comments, extra lines and print statement (used to debug), the script makes 33 lines long for the full fledged features.
Ligne 201 : Ligne 201 :  
[[Fichier:ENG-CANSAT-PICO-MISSION1-CAPTURE-25.png|360px]]
 
[[Fichier:ENG-CANSAT-PICO-MISSION1-CAPTURE-25.png|360px]]
   −
The {{fname|cansat2.py}} script do re-enforce error controls with {{fname|try...except}} statements in the script and showing various onboard LED patterns in case of error.
+
The [https://github.com/mchobby/cansat-belgium-micropython/tree/main/mission1 cansat2.py] script do re-enforce error controls with {{fname|try...except}} statements in the script and showing various onboard LED patterns in case of error.
    
Error Code are reported as quick serie of blink following by slow blink... counting the slow blink gives the error code number.
 
Error Code are reported as quick serie of blink following by slow blink... counting the slow blink gives the error code number.
Ligne 366 : Ligne 366 :  
led.off()
 
led.off()
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
Just to remind, the {{fname|rfm.send()}} only accepts binary data as generated with bytes() or bytearray(). The message string must be converted to a binary with {{fname|bytes()}}. As binary data does not accept value > 127 without a proper encoding then the bytes() conversion must identifies the encoding of the source string to applies the adequate encoding scheme (UTF8 -> Binary).
    
== Fault tolerant design ==
 
== Fault tolerant design ==
29 917

modifications

Menu de navigation