element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Raspberry Pi, creepy Zoltar Like Fortune Teller help
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 4 replies
  • Subscribers 665 subscribers
  • Views 2105 views
  • Users 0 members are here
  • mystic seer
  • coin acceptor
  • thermal_printer
  • raspberry_pi_3_b_plus
  • zoltar machine
Related

Raspberry Pi, creepy Zoltar Like Fortune Teller help

realgeneralgrunt
realgeneralgrunt over 6 years ago

Hey everyone!

 

I'm a puppet builder/composer/ jack of all trades working on my next project: My own original fortune teller machine.

 

To get it out of the way right off the bat: I'm NOT a programmer. I can figure SOME stuff out but 99% of coding I'm not good at at all.

 

Now onto my project:

 

image

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

So thus far, I have gotten the entire automation done (not shown are the LED lights)

 

I used a Mini Meastro 12 Servo Controller, 1 servo, and 3 LEDs (Monk RGB LEDs with built in resisters)

 

The head is 3d printed from a model I did in Sculptris, and the music I composed myself.

 

Now here are the remaining steps:

 

Using a coin acceptor:

 

https://www.adafruit.com/product/787?gclid=CjwKCAiAsoviBRAoEiwATm8OYB6kjzT62LsyP2nW9KEgcXrX4rUOxXm75hvwpg-ig9-FBbzy2ptia…

 

to activate the sequence.

 

To have the audio track play at the exact moment the sequence starts (the audio in the video is from my PC Speaker that I hit play to sync with the sequence)

 

After the sequence plays, a random fortune is printed using a Thermal Printer:

 

https://www.adafruit.com/product/597

 

I'm using a Raspberry Pi 3 for this, but I also have an arduino uno.

 

I was inspred by Matt's Mystic Seer build:

 

Episode 365: Twilight Zone Fortune Telling Machine

 

I'm hoping you all can help me finish the internals so I can start the build on the actual machine!

Like I said, I'm NOT a programmer, so all help would be appreciated.

 

Thanks!

  • Sign in to reply
  • Cancel
Parents
  • shabaz
    shabaz over 6 years ago

    Hi Chris,

     

    The usual way to get through projects like these is to do some programming or scripting, unless there is some similar project out there that can be copied closely.

    For doing it from scratch, some pseudocode needs to be written to approximately lay out how it could all work, and there you'd need to flesh out all your requirements, because some subtle things can change the code structure, for this type of project:

    The reason is, yours is not a trivial project, especially since although the requirements may at a high level sound simple, in reality as soon as you want to start doing things like slower/faster motion and more accurate syncing to music/effects, the coding will need a structure that can extend to this) so it's not a trivial bit of code anymore. You'll end up using concepts like threads or processes, and timers, and state machines. These are just some of the things you'd need to get up-to-speed on.

    Is there any project you've found via google that very closely meets your requirements? Then it could be easier to modify that.

    There are some people online that have a history in this type of animatronics, such as Lucy Rogers, there is a link to her video here:

    https://www.recantha.co.uk/blog/?p=15234

    Personally if I had to do this project, I'd try to follow her video (I've not watched it) or find another with this type of thing, and glean from there what hardware they used, and what programming language they found useful, and if they've shared any code.

     

    EDIT: One other thing, is to also explore stepper motors, since ungeared, they can make creepy-looking movements, plus they can be easily accelerated or slowed down, for better syncing, and they're quieter with no gears. It's just a suggestion, to rule in or out for your specific requirements for this project. Stepper motors however would require a driver board, they cannot directly connect to Pi/Arduino like hobby servos can. I don't know what Lucy Rogers used, but perhaps her presentations may discuss this.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • shabaz
    shabaz over 6 years ago

    Hi Chris,

     

    The usual way to get through projects like these is to do some programming or scripting, unless there is some similar project out there that can be copied closely.

    For doing it from scratch, some pseudocode needs to be written to approximately lay out how it could all work, and there you'd need to flesh out all your requirements, because some subtle things can change the code structure, for this type of project:

    The reason is, yours is not a trivial project, especially since although the requirements may at a high level sound simple, in reality as soon as you want to start doing things like slower/faster motion and more accurate syncing to music/effects, the coding will need a structure that can extend to this) so it's not a trivial bit of code anymore. You'll end up using concepts like threads or processes, and timers, and state machines. These are just some of the things you'd need to get up-to-speed on.

    Is there any project you've found via google that very closely meets your requirements? Then it could be easier to modify that.

    There are some people online that have a history in this type of animatronics, such as Lucy Rogers, there is a link to her video here:

    https://www.recantha.co.uk/blog/?p=15234

    Personally if I had to do this project, I'd try to follow her video (I've not watched it) or find another with this type of thing, and glean from there what hardware they used, and what programming language they found useful, and if they've shared any code.

     

    EDIT: One other thing, is to also explore stepper motors, since ungeared, they can make creepy-looking movements, plus they can be easily accelerated or slowed down, for better syncing, and they're quieter with no gears. It's just a suggestion, to rule in or out for your specific requirements for this project. Stepper motors however would require a driver board, they cannot directly connect to Pi/Arduino like hobby servos can. I don't know what Lucy Rogers used, but perhaps her presentations may discuss this.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube