Need help too get startet with my Saft MixerV1

Hi all I am from norway :slight_smile:
my English is not so good

Need help with a project

I'll make a Saft Mixer.

  1. press the start button
  2. Servo1 to fill the juice/saft in glass 2sec (must be adjusted too get it to work)
  3. Wait for 3 sec
  4. Servo2 fill the water in glass 5sec (must be adjusted too get it to work)
  5. wait for 3 sec
  6. Motor will mix it together 4 sec

Then you can press the start key again and start everything again (new glass too fil)

Can one of you show me how I set it up on my Breadboard
and help me with code:)

Bord I use now: SparkFun RedBoard - Programmed with Arduino
And i use Breadboard - Self-Adhesive (White)

-Knutarn :smiley:

SparkFun RedBoard is an Uno clone (though it looks like a fairly nice one).
Do you know that you can turn the flow on and off with the servos? That's a bit of mechanical design there that I can see being potentially difficult.

You'll need servos, a motor, appropriate power supply for servo and motor, a beefy mosfet to drive the stirrer, plus the basics with a button and probably some LEDs to indicate status, and some basic resistors (a 10-100k for gate pulldown on the fet, ballasts for the LEDs, etc). Maybe caps to filter the power too, and a diode across the motor for the back-emf when you turn it off.

WTF is saft?

Like lemonade:)

I just use servo on test, I going too use pump.
Can you show mi on Drawing? and the code?
Then I can see how code looks like. and how it connects

so i can see how its made and looks

This kit I use now: http://www.digitalimpuls.no/PC-komponenter/Hovedkort/Arduino/Arduino/The-Arduino-Starter-Kit-with-UNO-board---includes-instruction-for-15-projects-125542-p0000075865.aspx

This is just prototype test i going too make on this stuff

Here is code I workin on:

#include <Servo.h>

Servo sservo;  // create servo object to control a servo 
Servo vservo;
                // a maximum of eight servo objects can be created 

int pos = 0;    // variable to store the servo position 
int button = 2;  // The button will be on Pin 7 
const int motorPin = 11;

void setup() 
{ 
  sservo.attach(10);  // attaches the servo on pin 9 to the servo object
  vservo.attach(9);  // attaches the servo on pin 9 to the servo object
  pinMode(motorPin, OUTPUT);
pinMode(pos, OUTPUT);
pinMode(button, INPUT); 
digitalWrite (button, LOW);
} 

void loop() 
{ 
  
    if (digitalRead(button) == LOW)

 // for(pos = 0; pos < 90; pos += 90)  // goes from 0 degrees to 90 degrees 
  {                                  // in steps of  degree 
    sservo.write(pos);    // tell servo to go to position in variable 'pos' Saft megenden
    delay(500); //saft sec
    sservo.write(90); //
    delay(1000);
    vservo.write(0); //vannservo
    delay(4000);  // waits 1s for the servo to reach the position 
    vservo.write(90);
    delay(1000);
    digitalWrite(motorPin, HIGH);
    delay(4000);
    digitalWrite(motorPin, LOW); 
    
                          // waits 1s for the servo to reach the position' 
                       
    }
  if (digitalRead(button) == HIGH) 
  
  for(pos = 90; pos>=90; pos-=90)     // goes from 90 degrees to 0 degrees 
  {                                
     sservo.write(pos);              // tell servo to go to position in variable 'pos' 
  delay(50);                             // waits 50ms for the servo to reach the position 
  }
  
}