Skip to content

SYMAX-inc/experiment-tools-valve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is solenoid valve controller hardware and firmware.

Schematics

See inventhub.

How to customize valve control

Download the latest code from this link.

You can set the time during opening valve with seconds_to_open_valve, and during closing valve with seconds_to_close_valve on experiment-tools-valve.ino in your downloaded zip archive.

You need to build and install your customized code to valve controller board according to the instruction of next section.

diff --git a/experiment-tools-valve.ino b/experiment-tools-valve.ino
index eb05686..cf57e86 100644
--- a/experiment-tools-valve.ino
+++ b/experiment-tools-valve.ino
@@ -2,8 +2,8 @@
 
 // Parameters can be changed by user
 namespace {
-constexpr uint32_t seconds_to_open_valve = 10;
-constexpr uint32_t seconds_to_close_valve = 20;
+constexpr uint32_t seconds_to_open_valve = 5;
+constexpr uint32_t seconds_to_close_valve = 30;
 };
 
 // Parameters should NOT be changed

How to build and install

  1. Install Arduino IDE (recommend 1.8.12)

  2. Add URL https://kimio-kosaka.github.io/digispark-clone/package_digispark-clone_index.json into Boards Manager URLs on Preferences of Arduino IDE

  3. Install Disispark AVR Boards (clone) on Boards Manager on Arduino IDE

  4. Select Digispark (Default - 16.5mhz) on menu Tools -> Boards of Arduino IDE

  5. Select Micronucleus on menu Tools -> Programmers of Arduino IDE

  6. Open experiment-tools-valve.ino on Arduino IDE

  7. Disconnect USB cable from solenoid valve board

  8. Push Upload button on Arduino IDE and see below log message

    Running Digispark Uploader...
    Plug in device now... (will timeout in 60 seconds)
    
  9. Connect USB cable to solenoid valve board and wait a while

  10. Succeeded with below log message

    running: 100% complete
    Micronucleus done. Thank you!
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages