Skip to content
Same day shipping on in stock items. Order by 2pmPST.
Same day shipping on in stock items. Order by 2pmPST.

Basic Control box with an Arduino Microcontroller and Project Box

SKU CONTROL-BOX
Sold out
Original price $30.00 - Original price $30.00
Original price
$30.00
$30.00 - $30.00
Current price $30.00

We're sorry, this item is discontinued.

For help finding an alternative product, please call 1-800-528-1417 or email sales@circuitspecialists.com and we'll be happy to assist.

Availability:
Out of stock
  1. Project: CS_Basic Control Box

 

We design this kit to fulfill the need for system concept testing in the prototype phase of the project. This Basic Control Box provides basic control like turn on/off the system, variable speed control, variable direction control.

 

As the project grows, the Basic Control Box can also be upgraded to an Advance Control Box, with switches, LCD display, and joystick control depend on the need of the project.

 

  1. Parts list:
  • 1 * Arduino Uno R3: Item #ARDUINO UNO R3
  • 2 * Micro Switch: Item #S18-23A-H
  • 2* 10K Ohm resistor: Item #RG10K
  • 1 * Potentiometer: Item #31VA302
  • 1 * Knob
  • Project Box: Item #PB-3P

 

  1. Wiring
  • CS_Control Box Schematic

 

 

Control box

 

  1. Code

 

/*

-----------------Note----------------------

Date: 11-25-2019

Project Name: CS_BasicControlBox (BCB)

Goal: Testing

Author: Khang Nguyen

*/

 

const int R_button = 7;

const int B_button = 6;

const int Knob = A0 ;

 

int R_button_State = 0;

int B_button_State = 0;

 

boolean forward = false ;

boolean backward = false;

 

int Knob_Value = 0 ;

long P_Knob_Value = 0 ;

 

void setup()

{

Serial.begin(9600);

pinMode(R_button, INPUT);

pinMode(B_button, INPUT);

 

}

 

void loop()

{

R_button_State = digitalRead(R_button);

B_button_State = digitalRead(B_button);

Knob_Value = analogRead(Knob);

P_Knob_Value = map(Knob_Value,1023,0,0.0,5.0);

 

 

 

Serial.print("Knob Value: ");Serial.println(P_Knob_Value);

 

if ( P_Knob_Value > 0)

{

//====================Red_Button====================//

if (R_button_State == LOW)

{

forward = true ;

Serial.println("Red button press!");

}

if (R_button_State == HIGH)

{

forward = false ;

Serial.println("Red button release!");

}

//====================Black_Button====================//

if (B_button_State == LOW)

{

backward = true;

Serial.println("Black button press!");

}

 

if (B_button_State == HIGH)

{

backward = false;

Serial.println("Black button release!");

}

}

}

 

Conclusion

 

 

REVIEWS

Compare products

{"one"=>"Select 2 or 3 items to compare", "other"=>"{{ count }} of 3 items selected"}

Select first item to compare

Select second item to compare

Select third item to compare

Compare