Peron Peroff machine
Useless machine, a device with a function but no direct purpose, started by the italian artist Bruno Munari in the 1930s.
Circuits
This version was mounted over an old Cigar box with Arduino Nano, a strong Mg996 servo motor, a 3d printed arm, DFPlayer mini, microSD, 4ohm 3 watts Speaker, a resistor and a switch.
Inside useless box
Art, philosophical point, sad metaphor, simple joke. All valid options.
CodeThere is not much code to explain. Just switch detection, servo movement and mp3 playback.
int butValue = digitalRead(switchPin);
if (butValue==0){  
        
        Serial.println("Machine is on");                                   
        
        // Play mp3
        if (isPlaying==1){
          // continue
          play();           
        }
        else
        {
          // first time playback
          execute_CMD(0x0F,0x01,0x02); 
          isPlaying=1;
          }   
        
        // Wait  
        delay(3000);    
      
        Serial.println("Move arm");
        servoMotor.write(180);
        delay(1000);
        
        Serial.println("Return arm");
        servoMotor.write(0);
        // pause mp3
        pause();
        delay(2000);
        
  }Video66 projects • 200 followers
Maker Counterculture: machines of an absurd nature and seditious purposes as a detour, a potlatch, and an exploration of disturbance. 











_t9PF3orMPd.png?auto=compress%2Cformat&w=40&h=40&fit=fillmax&bg=fff&dpr=2)



Comments