» Electronics » Arduino »Game" Balloon Festival "

Game "Balloon Festival"



You work as a drone photo correspondent. Today you have a difficult task - to shoot a balloon festival from a quadrocopter. It is necessary to fly at the same height as the balls themselves, otherwise it will not work to photograph them from the desired angle. But you cannot run into them. The shell of the ball is durable, nothing bad will come of plastic propellers. Spectators also will not suffer: they were not allowed to sit directly under the balls. But the drone will be lost, and the editor-in-chief is unlikely to be glad that such an awkward photo camera is in his submission. Here is the plot of a game invented by the author of Instructables under the nickname Boomer48.

The platform for the game is the so-called. dedicated console, i.e., a game console designed specifically for a specific game. Although, of course, you can install a socket in the device so that microcontrollers with various firmware can be changed like cartridges. As can be seen from the diagram, the display is connected to the microcontroller in a 4-bit way, which requires only six lines. The method of connecting a tuning resistor for adjusting contrast (you can also apply a variable) is described in the explanatory text under the diagram.

Game


As a debug board, the wizard applies Arduino Nano, and then flashes the bootloader in a separate ATMega328 microcontroller (how to do this is described here), corrects the sketch taking into account the fact that in the Arduino Kano the clock frequency is 16 MHz, but here it will be 8, and it fills the sketch into the microcontroller. The sketch itself is laying out hereto homemade could be repeated. Assembles everything on a piece of a perfboard-type breadboard and places it behind the display board. Puts everything on the lid of the junction box. On the sides of the display there are control buttons, and below it is a reset button.



So it looks on the front side when all the necessary holes have already been cut, including large rectangular:



Then the master takes two boards: a charge controller and a boost converter. There are also boards where both functions are combined, but he prefers two separate ones.




All this, as well as the battery and the switch, the master places in the junction box itself. You can not solder such a battery. Either the compartment or spot welding.Since all this taken together practically repeats the power bank device, you can simply put inside the most budgetary and small-sized power bank that you can find. Pull out the cord to charge it. If the power bank has a power button, make a pusher so that it can be pressed from the outside. If not, use a switch that commutes the positive wire between the power bank and the load - in fact, the game console.



Now you can turn on the power and play. Forward, your drone moves itself, and you move it sideways with the help of buttons.



In a collision with a ball, the score and record value are displayed, and if a new record is set, it is saved.



In order for the photojournalist to apologize to the editor-in-chief and ask for a new drone, just pressing the reset button is enough. And either the editor is very kind, or the drones in the universe of this game are worthless ...
1
1
1

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 ...