» Electronics » Arduino »Manage the" Magic Screen "with the joystick

We control the "Magic screen" with the joystick



Many had this toy in childhood; we controlled it with two rotary knobs. Even then, it was possible to attach two DC motors with gears to it and control them from the buttons. And now for this it has become possible to adapt the joysticks. Which is what the author of Instructables did under the nickname millerman4487.

All components homemade he placed on a sheet of cardboard:








But two identical parts had to be printed - these are adapters for connecting gears to the Magic Screen handles. It looks like any of the adapters:



And so it connects to the gearbox (perhaps this will require slightly warming the adapter with a hairdryer):



STL file.

The electrical diagram of the structure is shown below:



There is only one incomprehensible component on it - the L293D chip. It contains two so-called H-bridges, each of which can reverse the motor connected to it. Below the board it is shown which conclusions Arduino Connect which of the pins of the Wii Nunchuck joystick connector. The sketch below can be rewritten to work with any other types of joysticks, in its current form it will be required.



After switching on, a correctly assembled device starts working immediately. Nunchuck is an analog joystick, so you can control not only the direction, but also the speed of movement. Arduino takes over the PWM speed control. If movement along any of the axes occurs in the opposite direction, the corresponding motor must be reversed. By placing the cursor approximately in the middle of the screen and pressing the Z button, you can make the device automatically write the word HI.
9
9
9

Add a comment

    • smilesmilesxaxaokdontknowyahoonea
      bossscratchfoolyesyes-yesaggressivesecret
      sorrydancedance2dance3pardonhelpdrinks
      stopfriendsgoodgoodgoodwhistleswoontongue
      smokeclappingcraydeclarederisivedon-t_mentiondownload
      heatirefullaugh1mdameetingmoskingnegative
      not_ipopcornpunishreadscarescaressearch
      tauntthank_youthisto_clueumnikacuteagree
      badbeeeblack_eyeblum3blushboastboredom
      censoredpleasantrysecret2threatenvictoryyusun_bespectacled
      shokrespektlolprevedwelcomekrutoyya_za
      ya_dobryihelperne_huliganne_othodifludbanclose

We advise you to read:

Hand it for the smartphone ...