I need help with setting up the code and electronic parts for my project|movable projector-like screen

Hello Everyone, I am currently working on a school project where a projector-like screen is able to unroll and roll up automatically. I am not very experienced with Arduino since this is my first time using one. So any help on how to set up the program software and the electronic parts would be very helpful. I am planning of using a vex 2-wire motor 393 to control the rotation of the screen, which is attached to a pole.

I currently cannot upload my diagrams since I am a new user :slight_smile:

How it will work:

Step 1: button is pressed, and the screen goes down and stops completely once it's fully unrolled.
Step 2: The button is pressed again, but this time, the screen goes up and stops until it's completely stored.

That is all.

All help is appreciated. Have a good day.

Hello @jmathew_superfan ,

To post images etc you need trust level 1, you can get there by:

  • Entering at least 5 topics
  • Reading at least 30 posts
  • Spend a total of 10 minutes reading posts

Users at trust level 1 can…

  • Use all core Discourse functions; all new user restrictions are removed
  • Send PMs
  • Upload images and attachments

thanks

Any idea how the controller will know where to stop?

The same question again.....

Hopefully this tutorial will help you get the concept of a state machine.  You'll need to decide on a good way to sense the top and bottom positions.

@jmathew_superfan
I like to help people break rules. You can post your diagram, before reaching level 1, in a code block by drawing it in ASCII.

Two sites for you:
Textik
ASCIIFlow

thank you!

thank you

Okay... start gathering your information...

Are you using the Arduino Uno?

Here is your Vex motor driver (says two-wire, but I count one + vcc + gnd)

Your Vex 393 datasheet (good enough):
http://cmra.rec.ri.cmu.edu/products/cortex_video_trainer/lesson/media_files/2_wire_393_motor_ig.pdf

http://cmra.rec.ri.cmu.edu/products/cortex_video_trainer/lesson/media_files/IntegratedEncoderModule.pdf

Vex coding help pages:

Here is the Vex library:

Vex example:

And here, you can simulate an Arduino Uno commanding a "one wire" motor (signal, vcc, gnd):

Thank you so much! This will help me a lot with coding the vex motor. If I come across a problem, I will make a post.

And yes, I am using the Arduino Uno.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.