Cheers :)
Type: Posts; User: boulton1991
Cheers :)
How would I go about getting a loop to return to the start?
i want the elevator to start on floor 0 and return to floor 0 when there are no inputs but not sure how to create this loop?
const int MAX = 5
int data [MAX} = {0,1,2,3,4};
// too many people in lift override stop motor and sound alarm
void Liftcontrol
if (weight = 1)
{
motor1 = 0;
motor2 = 0;
Yeah I'm gonna be using switches for the inputs, led to display the current floor and a motor to simulate, no door or limit switches, it is pretty hard haha and it's due in a months time include the...
im going to be using a 89s2051 controller if this is any help?
as you can see i really have no idea haha so any help we would brilliant, the notes college gave me are a bubble sort programme, a 7 segment display , an averaging programme and to toggle an LED?
im making an elevator for my HNC project but im useless at C programming, ive done some of the code and which way i want it to work, any help on functions or how to do this would be great.
i want...
Cheers guys, I'll give it a go at writing it either tonight or tomorrow after work and upload to see what you think and what could be improved :)
Just put void main there as an example, should I put void and the name of my programme?
If I wanted to add an emergency stop to an elevator programme should I use an if statement? Eg
If (emergency stop)
{
Void main();
}
Or something along those lines?
Yeah that's what I was trying to explain but you did a better job haha, how would I go about doing that? It's making my head spin
thanks a lot :) ill have a look through them later and hopefully upload some code you can nitpick, i was thinking of using an array as i will only be using 10 floors, using an if statement to decided...
hi guys, for my HNC project i'm making an elevator programme that decides which floor to visit depending on the direction is has just traveled and i'm having trouble finding code that i could use to...