other:other

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
other:other [2024/07/08 08:10] – [Steps] formlabother:other [2026/03/13 02:49] (current) – [Docuwiki troubleshooting] formlab
Line 174: Line 174:
   * [[https://www.bol.com/be/nl/p/mini-nano-v3-0-atmega328p-microcontroller-bord-voor-arduino/9200000112027528/|Arduino nano]]   * [[https://www.bol.com/be/nl/p/mini-nano-v3-0-atmega328p-microcontroller-bord-voor-arduino/9200000112027528/|Arduino nano]]
   * Radio receiver & transmitter set (433,92Mhz)   * Radio receiver & transmitter set (433,92Mhz)
 +    * Search on Amazon for something like '433MHz RF Wireless Transmitter & Receiver Module Kit for Arduino'
  
 ==== Info ====  ==== Info ==== 
Line 239: Line 240:
  
 This is the code I'm using now:  This is the code I'm using now: 
-<code>+<code c++> 
 +/* 
 +Plotter auto shutdown 01 
 + 
 +For the Openbuilds Acro pen plotter. 
 +The Gcode sender (Openbuilds Control) will send the following Gcode sequence after finishing a plot: 
 +  M8 ; close the relay 
 +  G4 P0.2 ; wait 20 MS 
 +  M9 ; open the relay 
 + 
 +The relay is connected with the arduino nano with a cable. This signal can be detected as if it were a button press 
 +When the arduino received the 'button press', it transmits a code so the remote power socket will switch off. 
 +I'm using the Bounce2 library for debouncing and the NewRemoteTransmitter library for receiving and transmitting the 433Mhz radio remote signals. 
 + 
 +Formlab 
 +08/07/24 
 +*/ 
 + 
 +#define BUTTON_PIN 3 
 +#define LED_PIN 13 
 + 
 +// https://github.com/thomasfredericks/Bounce2 
 +#include <Bounce2.h> 
 + 
 +// Create a debouncer instance 
 +Bounce2::Button button = Bounce2::Button(); 
 + 
 +// https://github.com/1technophile/NewRemoteSwitch/tree/master 
 +#include <NewRemoteTransmitter.h> 
 + 
 +// Create a transmitter instance 
 +NewRemoteTransmitter transmitter(30980307, 11, 260, 3);  // address, pin, period_microseconds, repeats 
 + 
 +void setup() { 
 +  // Button setup 
 +  button.attach(BUTTON_PIN, INPUT);  // USE EXTERNAL PULL-UP 
 +  button.interval(5);                // (ms) 
 +  button.setPressedState(LOW); 
 + 
 +  // LED setup 
 +  pinMode(LED_PIN, OUTPUT); 
 +
 + 
 +void loop() { 
 +  button.update(); 
 +  if (button.pressed()) { 
 + 
 +    shutdown(); 
 +  } 
 +
 + 
 + 
 +void shutdown() { 
 +  digitalWrite(LED_PIN, HIGH); 
 +  delay(100); 
 +  digitalWrite(LED_PIN, LOW); 
 +  delay(100); 
 +  digitalWrite(LED_PIN, HIGH); 
 +  delay(100); 
 +  digitalWrite(LED_PIN, LOW); 
 +  delay(100); 
 +  digitalWrite(LED_PIN, HIGH); 
 +  delay(100); 
 +  digitalWrite(LED_PIN, LOW); 
 +  delay(100); 
 + 
 +  transmitter.sendUnit(0, false); // switch off unit 0 
 +}
  
 </code> </code>
Line 246: Line 314:
  
      
 +
 +===== Hygrometer reaction time =====
 +
 +I bought some cheap hygrometers from Amazon. Here's how quick they adapt to new humidity environments.
 +**Saturation test**: I placed a hygrometer in a dry environment and at the start of the timer, I put it in a bag with a wet cloth in.
 +At 12 minutes, the hygrometer shows 80% of the final humidity value.
 +At 2 hours, the hygrometer shows 98% of the final humidity value.
 +{{:other:hygrometer_saturation_plot.jpg|}}
 +
 +**Desaturation test**: I placed the hygrometer in a wet environment and at the start of the timer, I put it in a bag with known dry desiccant bags. This is an incomplete test, but it look the adaptation went faster.
 +{{:other:hygrometer_desaturation_plot.jpg|}}
 +
 +
 +
  
 ===== Docuwiki troubleshooting ===== ===== Docuwiki troubleshooting =====
  • other/other.1720451453.txt.gz
  • Last modified: 2024/07/08 08:10
  • by formlab