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
Techno Toys
  • Challenges & Projects
  • Project14
  • Techno Toys
  • More
  • Cancel
Techno Toys
Blog DollaS Dancer
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Techno Toys to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Molham
  • Date Created: 30 Apr 2017 11:51 PM Date Created
  • Views 3555 views
  • Likes 6 likes
  • Comments 24 comments
  • ti-rt
  • ttoysch
  • project14
  • electronictoych
Related
Recommended

DollaS Dancer

Molham
Molham
30 Apr 2017

DollaS Dancer

 

Introduction:

My girlfriend came up with this crazy idea!
Turning a barbie into a dancer on a stage,

The stage is coin bank, so you have to put money into it to make it dance for you.

 

image

Figure (0): Barbie Toy

 

Description:

 

BOM:

0. Barbie with swimming suit.

1. Right Angle Gear Motor: voltage is 4.5-6V with a no load current of 190mA, output shaft is 9mm long and the gearbox ratio is 48:1 with a wheel speed of 140 RPM (unloaded)

2. Dual Ball Bearing Hub

3. 1.50” Aluminum Channel

4. 1/4" aluminum pole

5. 1/4" wood pole

6. Aluminum box "I found it in the recycling where I work"

7. Plexiglas cover.

8. 8 ohm speaker

9. Mp3 Player Audio Decoder Board

10 Switcher Power Module  LMZ36002EVM see below for more info

RoadTest Review the TI LMZ36002EVM - Review

11. L298N Motor Drive Controller Board Module Dual H Bridge.

12. PIR Motion Sensor.

13. MCU ATMEL ATMEGA328P

 

imageimage

Figure (1): Right Angle Gear Motor

image

Figure (3): Dual Ball Bearing Hub

image

Figure (4): Dual Ball Bearing Hub

 

image

Figure (6.8): Aluminum box with speaker.

 

image

Figure (7): Plexiglas cover.

 

 

image

Figure (9): Mp3 Player Audio Decoder Board

 

image

Figure (10): Switcher Power Module  LMZ36002EVM

image

Figure (11): L298N Motor Drive Controller Board Module Dual H Bridge.

 

image

Figure (12): PIR Motion Sensor.

image

Figure(13) MCU Arduino Tiny

 

 

Full System:

image

Code:

 

' ******************************************************************************

' * Title         : DallaS Dancer                                                      *

' * Version       : 1.0                                                                     *

' * Last Updated  : 06/2/2017                                                      *

' * Target Board  : Atmel 328p module                                        *

' * Target MCU    : ATMega328p                                                 *

' * Author        : Molham Kayali                                                    *

' * IDE           : BASCOM AVR 2.0.7.5                                           *

' * Peripherals   : Motors Control                                                  *

' * Description   : DollaS Dancer control                                       *

' ******************************************************************************

 

 

'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

'-----------------------[Definitions]

Declare Function Pir1() As Byte

Declare Function Pir2() As Byte

 

 

$regfile = "m328pdef.dat"

$crystal = 8000000

$baud = 9600

'$Sim

'-----------------------

'-----------------------[GPIO Configurations]

Config Pind.2 = Output : Dc1 Alias Portd.2 : Reset Dc1

Config Pind.3 = Output : Dc2 Alias Portd.3 : Reset Dc2

 

Config Pind.4 = Input

 

Config Adc = Single , Prescaler = Auto , Reference = Internal

 

 

Dim Motion As Byte

Dim Motion2 As Byte

 

 

Start Adc

Wait 3

'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

'--->[Main Program]

 

 

Do

   Motion = Pir1()

    If Motion = 1 Then

 

     Gosub Move_forward : Waitms 200

     Gosub Move_backward : Waitms 200

 

    End If

 

Loop

End

'---<[End Main]

'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

'--->[Move Renbot with 4 motors forward]

Move_forward:

 

 

   Set Dc1 : Reset Dc2

   Waitms 100

Return

'-----------------------

 

 

'--->[Move Renbot with 4 motors backward ]

Move_backward:

 

 

   Reset Dc1 : Set Dc2 :

   Waitms 100

Return

'-----------------------

 

 

'--->[Front PIR sensor]

Function Pir1() As Byte

Local Adcvalue As Integer

 

 

      Adcvalue = Getadc(0)

    If Adcvalue < 512 Then

      Motion = 1

 

 

    Else

      Motion = 0

 

 

    End If

End Function

 

 

'-----------------------

 

 

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

 

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

  • Sign in to reply

Top Comments

  • Molham
    Molham over 8 years ago +3
    Sorry guys I just moved all the way from Kansas to California for a new job and I have been unpacking my stuff, I woke up really early today so I can finish this project and I finally found all the components…
  • tariq.ahmad
    tariq.ahmad over 8 years ago +3
    Hi Molham , Winners have been chosen and an announcement will be posted in the next couple of days. Hoping to have this done by end of the day tomorrow.
  • Molham
    Molham over 8 years ago in reply to tariq.ahmad +3
    Thank you for clarifying now I can focus on coming up with an idea for the next project.
Parents
  • balearicdynamics
    balearicdynamics over 8 years ago

    ice! Finally a video image

     

    Where is the gym this dolla go? Seems very strong image image image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Molham
    Molham over 8 years ago in reply to balearicdynamics

    hahahaha I slowed it down little bit, I added 6 different songs as well

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • balearicdynamics
    balearicdynamics over 8 years ago in reply to Molham

    Great! hope you publish a new video. The most interesting aspect and unexpected was the kind of dance image Genial

     

    Enrico

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Molham
    Molham over 8 years ago in reply to balearicdynamics

    I thought that will make it funny specially with the speed (:

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • Molham
    Molham over 8 years ago in reply to balearicdynamics

    I thought that will make it funny specially with the speed (:

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • 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