This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:make_treat_dispenser [2020/09/28 16:50] vizycam |
wiki:make_treat_dispenser [2022/03/08 10:22] vizycam [Final assembly] |
||
---|---|---|---|
Line 172: | Line 172: | ||
- | Then attach the extension cord to pins 2 and 4 on Vizy's terminal block. | + | Then attach the extension cord to pins 2 (12V) and 4 (B0) on Vizy's terminal block. |
Line 195: | Line 195: | ||
</Code> | </Code> | ||
- | You can then trigger the solenoid with: | + | You can then trigger the solenoid (open shutter) with: |
<Code:python> | <Code:python> | ||
power.io_write_bits(1) | power.io_write_bits(1) | ||
</Code> | </Code> | ||
- | and turn off with: | + | and turn off (close shutter) with: |
<Code:python> | <Code:python> |