<< return to Vizycam.com

User Tools

Site Tools


wiki:make_treat_dispenser

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:make_treat_dispenser [2020/09/28 16:45]
vizycam
wiki:make_treat_dispenser [2020/09/28 16:51] (current)
vizycam
Line 176: Line 176:
  
 [{{wiki:​p1000667_result.jpg}}] [{{wiki:​p1000667_result.jpg}}]
 +
 +
 +And don't forget to plug the terminal block into Vizy. 
  
  
Line 181: Line 184:
  
 Test the treat dispenser with the [[wiki:​pet_companion|Pet Companion application]] by clicking on ''​Dispense treat''​.  ​ Test the treat dispenser with the [[wiki:​pet_companion|Pet Companion application]] by clicking on ''​Dispense treat''​.  ​
 +
  
 Or you can punch in some simple lines of Python. ​ Just type into a Python instance (you can bring up a Python instance by pointing your browser to ''​http://​vizy.local/​python''​.) Or you can punch in some simple lines of Python. ​ Just type into a Python instance (you can bring up a Python instance by pointing your browser to ''​http://​vizy.local/​python''​.)
Line 191: Line 195:
 </​Code>​ </​Code>​
  
-You can then turn 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>​
  
-then turn off with:+and turn off (close shutter) ​with:
  
 <​Code:​python>​ <​Code:​python>​
wiki/make_treat_dispenser.1601329520.txt.gz ยท Last modified: 2020/09/28 16:45 by vizycam