Visual Programming
Tuesday, May 3, 2016
VIDEO
We have used specific x and y positions for the robot to complete a sequence of movements that will allow it to pick up and object and "throw" it away in the correct "garbage bin". We will have to retrieve two cups and possibly stylize them accordingly yet. The video below shows each sequence; one for paper and one for plastic. The third and fourth toggle are for manual control and then a home, or base, position.
UI PROCESS
Sunday, May 1, 2016
FINAL PROJECT UPDATE
Tee and I have made a lot of progress on our project. We not only altered our idea a little, but we had a meeting about coding and other details, which we needed clarification on. That meeting helped a ton.
From that meeting, we took away knowledge on how to format and then customize the code to our project. We were able to hook up our robot right away and make sure the movements were smooth and consistent.
So far we have added details for color and the overall layout of our UI. We also have made all our buttons. We still need to make adjustments on the specific movements we will have the robot make. So far it is looking good and we're proud of our work. I can say a week ago we were not as excited about it as we are now.
From that meeting, we took away knowledge on how to format and then customize the code to our project. We were able to hook up our robot right away and make sure the movements were smooth and consistent.
So far we have added details for color and the overall layout of our UI. We also have made all our buttons. We still need to make adjustments on the specific movements we will have the robot make. So far it is looking good and we're proud of our work. I can say a week ago we were not as excited about it as we are now.
Friday, April 22, 2016
PROJECT PROPOSAL --
What Tee and I want to do with our robot is conduct it to either draw or write something. We started off with thinking we could program it to draw out certain letters according to that key being pressed on a keyboard.
We do not plan on programming the whole alphabet, but with that concept in mind we had an idea of programming steps to draw a shape. Still wanting to include buttons, we came up with using knobs as a way of free drawing. There will be a couple pre-set images so that if that icon is pressed, the robot will know what to do. The knobs will be there as an option. Then we will try and include sliders for additional functions -- probably for background color.
The top sketch shows the orientation of it. Firstly, it was obvious to want the robot to hold the pen or pencil downward and write normally, however, thanks to Brian we discovered the mapping of the robot for its tasks could get complicated and tricky.
I think for both simplicity and the fun of how it will look, we will somehow have the pen on its side and the robot can write on and easel or something of that nature.
Monday, March 21, 2016
Sunday, March 20, 2016
BUTTONS -- Practice (Explained)
So my goal for this project was to create more of an abstract design. I wanted to place rectangles of different sizes around my sketch. The plan was to have the rectangles be the buttons. If you click a button (rectangle), you change the background of the sketch. The buttons would already be different colors so you'd be able to tell what you would get out of it; except a shade lighter or darker. I ran into trouble with this, so what I had down (not finished) wasn't able to load. But I saved that and thought I'd post it anyways.
BUTTONS -- Practice
import controlP5.*;
ControlP5 buttons;
//?
int myColor = 255;
void setup(){
size(600,600);
//object referring to itself
buttons = new ControlP5(this);
buttons.addButton("one")
//what you get
.setValue(45,121,53)
.setPosition(10,10)
.setSize(50,50)
.setColorBackground(color(34,98,40,15))
//when you hover
.setColorForeground(color(68,134,75,15))
//text
.setColorLabel(color(255))
//when you click
.setColorActive(color(68,134,75,15))
;
buttons.addButton("two")
.setValue(1,103,2)
.setPosition(40,30)
.setSize(100,400)
.setColorBackground(color(3,131,3,15))
.setColorForeground(color(20,167,21,15))
//text
.setColorLabel(color(255))
//when you click
.setColorActive(color(20,167,21,15))
;
buttons.addButton("three")
.setValue(91,180,98)
.setPosition(10,70)
.setSize(400,100)
.setColorBackground(color(60,152,67,15))
.setColorForeground(color(91,201,99,15))
.setColorLabel(color(255))
.setColorActive(color(91,201,99,15))
;
}
void draw(){
background(myColor);
}
//?
void one(int c){
myColor = c;
}
void two(int c){
myColor = c;
}
void three(int c){
myColor = c;
}
Subscribe to:
Posts (Atom)



