Go Down

Topic: Controlled Elevator (Read 1 time) previous topic - next topic

clarign

Dec 02, 2014, 04:20 am Last Edit: Mar 30, 2015, 07:19 am by clarign Reason: missed and attachment
Hey guys, I wanted to share the project we did this last semester. It was a three floors controlled elevator. We used an Arduino Uno, I'll leave you here the document explaining how we did it, it is in spanish but I hope it might help you, otherwise you can ask.
Here's a video of the elevator working:
http://youtu.be/cqpKfEl-PYg

#1
Mar 10, 2015, 11:39 pm Last Edit: Mar 10, 2015, 11:44 pm by intertronic
trying to open the sketch.. but.. not opening!!

hi,

I opened the sketch, but it is giving me these errors. Any ideas?


Arduino: 1.6.0 (Windows 8), Board: "Arduino Uno"

PROGRAMA_ASCENSOR_ARDUINO_1 (1).ino: In function 'void setup()':
PROGRAMA_ASCENSOR_ARDUINO_1 (1).ino:68:6: error: redefinition of 'void setup()'
sketch_mar09a.ino:1:6: error: 'void setup()' previously defined here
PROGRAMA_ASCENSOR_ARDUINO_1 (1).ino: In function 'void loop()':
PROGRAMA_ASCENSOR_ARDUINO_1 (1).ino:84:6: error: redefinition of 'void loop()'
sketch_mar09a.ino:6:6: error: 'void loop()' previously defined here
Error compiling.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

wildbill

Compiles fine for me under 1.0.4. From the sound of the errors - did you accidentally paste the source into the IDE twice?


Nope. Only once I did..

Just to be sure.. When you download the file, what exactly do you do than?

I am just opening it with the Arduino software. Right?

wildbill

I did it by a more convoluted route - opened the file in a text editor and then copied and pasted the source into the IDE. This is just to avoid the IDE creating a new project every time I compile one of these things. I can't see that your method would be any different though.


no luck!! :(.. and I really need to get an idea, of how the sketch is written!!.. as its been a week looking at forums, and trying to write sketches!!.. but always end up with a problem.. either here or there!!

clarign

Hey intertronic, sorry for replying so late.
I'm not sure why is it giving you that problem, it never did to us, but I'll leave you here the screens of the program, hope it helps. You won't see #2 in red... a mistake, #3 is following #1

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy