Skip to content

Commit

Permalink
rpi updateS
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Aug 20, 2024
1 parent d217657 commit 395b031
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 9 deletions.
4 changes: 2 additions & 2 deletions developer-guide/10-Hardware/05-i2c-addresses.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ slug: /i2c-addresses

| Name | Chip | Address |
|------|----------|---------|
| ADC | RP2040 | 0x30 |
| DAC | RP2040 | 0x30 |
| ADC | RP2040 | 0x2C |
| DAC | RP2040 | 0x2C |
| TEMP | TMP1075 | 0x4F |
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,33 @@ Finally, there is more control using the other optional fields:
volume: 1.5
```

### Defining top-level parameters with `inputs`

Your experiment profile might have some important constants that you want to share across sections, or have colleagues modify. You can provide these in the `inputs` section, and use the constants in any expression:

```
inputs:
growth_phase_temp: 37.0
stationary_phase_temp: 30.0
od_threshold: 1.6
common:
jobs:
temperature_automation:
actions:
- type: update
hours_elapsed: 12.0
if: ${{ ::od_reading:od1.od < od_threshold }}
options:
target_temperature: ${{ stationary_phase_temp }}
- type: update
hours_elapsed: 12.0
if: ${{ ::od_reading:od1.od >= od_threshold }}
options:
target_temperature: ${{ growth_phase_temp }}
```


## YAML syntax check, and indentation problems

Expand Down
10 changes: 6 additions & 4 deletions user-guide/29-Automations/03-led-automations.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,20 @@ And adding the following to the bottom of that file:
type: numeric
display: true
unit: "%"
label: Light intensity
description: The light intensity when light is ON.
label: Light ON intensity
description: The intensity when light is ON.
- key: light_duration_minutes
type: numeric
display: true
unit: m
unit: min
label: "Light ON for"
description: How long should the light be ON for?
- key: dark_duration_minutes
type: numeric
display: true
unit: m
unit: min
label: "Light OFF for"
description: How long should the light be OFF for?
```

Save and exit, and refresh the UI.
Expand Down
7 changes: 4 additions & 3 deletions user-guide/99-common-questions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -162,19 +162,20 @@ We've designed the hardware and software to be compatible with any Raspberry Pi
* Raspberry Pi 3 Model B & B+
* Raspberry Pi 3 Model A+
* Raspberry Pi 4 Model B ² ³
* Raspberry Pi 5 ² ³
* Raspberry Pi 5 ² ³
* Raspberry Pi Zero W (with headers) ¹
* Raspberry Pi Zero 2 (with headers)


Although you can use any above, **we like the Raspberry Pi 4 Model 3 B+, Raspberry Pi 4 Model B, and Raspberry Pi Zero 2**. Both have the necessary CPU power and memory for the Pioreactor workload, and are generally easy to source. However, they don't a ethernet connector built-in. So talk to your team about if you need to use ethernet or wifi. If you need ethernet, we like the model RPi 3 B+ or 4 B, or purchase some microUSB-to-ethernet dongles for the RPi Zero 2.
Although you can use any above, **we like the Raspberry Pi 3 B+, Raspberry Pi 4 B 2GB and Raspberry Pi Zero 2**. All have the necessary CPU power and memory for the Pioreactor workload, and are generally easy to source. However, they don't a ethernet connector built-in. So talk to your team about if you need to use ethernet or wifi. If you need ethernet, we like the model RPi 3 B+ or 4 B, or purchase some microUSB-to-ethernet dongles for the RPi Zero 2.

¹ _Raspberry Pi Zero W_ is on the list above, and is very low cost compared to the others. They can absolutely be used for Pioreactors _as workers_ - we don't recommend them to be your _leader_ (note sure what these terms mean? Here's an introduction to [leader and workers](/user-guide/create-cluster)). As workers, Raspberry Pi Zero W perform just fine, but will respond slower to commands. Note that this does not include the Raspberry Pi Zero _2_ W model, which is fine for all roles.

² You don't need a lot of RAM for the Pioreactor, so we recommend getting the lower RAM RPi if offered a choice. 1GB is fine.
² You don't need a lot of RAM for the Pioreactor, so we recommend getting the lower RAM RPi if offered a choice. 2GB or less is fine. Also, if you are going to buy a Raspberry Pi 4, you should consider just upgrading for the Raspberry Pi 5 2GB (it's only a few dollars more, and much more performant).

³ These have a USB-C power connector, whereas the other Pis have a microUSB power connector.


#### What microSD cards do you recommend?

At least 16GB. We like 16GB or 32GB SanDisk Edge or Samsung microSD cards for their longevity, but any good quality, class 10 SD card will do.
Expand Down

0 comments on commit 395b031

Please sign in to comment.