Ligne 29 : |
Ligne 29 : |
| } | | } |
| </syntaxhighlight> | | </syntaxhighlight> |
| + | |
| + | Then place the {{fname|while}} under comment to disable it. |
| + | |
| + | Proceed by placing a '''//''' in the front of the {{fname|while}} instruction. |
| + | |
| + | When done, the code should look to this: |
| + | |
| + | <syntaxhighlight lang="c"> |
| + | void setup() { |
| + | Serial.begin(9600); |
| + | |
| + | // wait until serial console is open, remove if not tethered to computer |
| + | // while (!Serial) { delay(1); } |
| | | |
| + | ... |
| + | } |
| + | </syntaxhighlight> |
| + | |
| + | Compile and upload the modified version to your Feather. |
| + | |
| + | Great! You are ready. The program would now starts without waiting for the Serial Monitor. |
| + | |
| + | == Plug the battery == |
| + | It is now time to plug the Lipo in the appropriate connector. |
| + | |
| + | When the Feather is plugged via USB: |
| + | * The Feather runs over the USB power. |
| + | * The LiPo battery is loaded from the USB. |
| + | |
| + | When the Feather is unplugged from USB: |
| + | * The Feather is instantaneously powered from the LiPo battery. |
| + | * The LiPo battery is now discharging to power up the Feather. |
| + | |
| + | The feather will run until the battery is discharged. |
| + | |
| + | At best, the battery have 4.2V and discharge until 3.0V (when LiPo the protection circuit shutdown the power. |
| + | |
| + | The time it takes to discharge depend on the power requirement of your LiPo. |
| + | |
| + | If the LiPo can store 2500mAh and a project requiring 130mA to run will last after 2500mAh/130mA = 19 Hour of working. |
| + | |
| + | {{ambox|text=This is an estimate. In real life, the current sink by the project is not constant so energy is not sink out constantly from the LiPo.}} |
| + | |
| {{ENG-CANSAT-TRAILER}} | | {{ENG-CANSAT-TRAILER}} |