element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
Attack of the Drones
  • Challenges & Projects
  • Project14
  • Attack of the Drones
  • More
  • Cancel
Attack of the Drones
Blog Dromes4All : Fully Functional Working Drome! Hooray!
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Attack of the Drones requires membership for participation - click to join
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: dubbie
  • Date Created: 21 May 2021 5:29 PM Date Created
  • Views 281 views
  • Likes 8 likes
  • Comments 3 comments
  • nano
  • ir transceiver
  • oled display
  • dromes4all
  • continuous servo
Related
Recommended

Dromes4All : Fully Functional Working Drome! Hooray!

dubbie
dubbie
21 May 2021

I have beaten the deadline and produced a fully working Drome4All a week before the deadline (two deadlines in  one sentence - terrible grammar but I'm tired and cannot be bothered to do any more thinking). It's been raining and blowing and I haven't been able to get into the garden much recently so I worked on my Dromes4All for the last couple of days and amazingly managed to create a fully working system. Sadly,  I have only managed to create one Drome so I think it might be better to call it DromeOne. Additionally, it doesn't have any dome either so a better title is now DroneOne. Still a good title.

I had to create a whole new circuit to create the IR commands to control DroneOne. This was just a Nano, with five push button inputs (forwards, stop, backwards, left and right) and the IR transceiver, see the circuit below:

 

 

I soldered all this together using stripboard and ended up with the following, which for me is pretty tidy; and it works.

 

 

The programme for this controller is listed below. It is fairly straight forward,  when a button is pressed it transmitted the first ASCII character of the command, so G for G, S for stop and so on. The main loop fragment is listed below. I have included the full listing at the end.

 

while (1)

  {

    if (anybuttonpress())

      {

        digitalWrite(LED_BUILTIN, HIGH);

        button = getbuttonpress();

        sendbuttonpress(button);

        delay(250);

      }

    else

      {

        digitalWrite(LED_BUILTIN, LOW);

        delay(50); 

      }

  } /* while */

 

The Drome itself has been improved with a 126x64 OLED display that I was planning to display a robot face graphic on. Sadly I didn't get around to that but it does show some text just to show it is working. The Robot Faces are only a few hours programming away.

 

I also added an IR transceiver module to the serial connections (Tx and Rx) with the final circuit for the Drome illustrated below:

 

 

I have included the fragment of the Drome programme below. It is a simple while loop that just waits for a command over the IR communication link and then executes it. It is nothing fancy, maybe I might do something more interesting at a later date. Maybe.

 

while (1)

  {

    Dromecommand = getIRcommand();

    Serial.print(Dromecommand);

    Serial.print(' ');

    IRvalue = getIRcommand();

    Serial.print(IRvalue);

    Serial.print(' ');

    IRvalue = getIRcommand();

    Serial.print(IRvalue);

    Serial.println(' ');

    executecommand(Dromecommand);

  } /* while */  

 

Below is a video of the fully working (?) Drome. The Drome does seem to have some problems. It will go forwards and backwards but when commanded to turn left or right it only completes the command sporadically. It should turn for one second but sometimes it just does a short turn. My suspicion is that the motors are causing a dip in voltage which is creating a brown-out reset. It doesn't seem to happen when going forwards or backwards, so maybe there is a bigger demand on the motors due to inertia or momentum when turning. Who knows. I used a LiPo battery with a buck boost converter to try and overcome this motor inrush current problem but I do not think it has fully worked. Maybe I'll just stick a couple of Supercapacitors into the circuit (The Completely Useless Robot - But with Superca... | element14 | Cheer Us Up) and see if that works.

 

Having thought about it a bit I realised that when the Drome was lifted off it's wheels for testing purposes it worked correctly for left and right, as well as forwards and backwards so it may be that using metal hex spacers might have made the chassis heavier and hence requiring more motor current to get going. I'll have to try replacing the metal hex spacers with plastics one to see if this fixes the problem. So I just replaced 10 metal hex spacers with nylon ones and - now it doesn't work at all. There is some problem that I am not yet perceiving, most likely to be power supply related, it usually is when motors are involved. Never mind!

 

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

 

This has been a pretty fun project (apart from the frustrations with getting the IR transceiver to work). It is the best packaged project I think I have ever put together,, altohugh I still have some improvement to make in my ability in this area. I made a mobile robot which was almost what I set out to achieve, I learnt a great deal about the NEC IR trnsceiver module and finished before the deadline - well almost anyway.

 

Now it's time for tea!

 

Dubbie

 

PS The Element14 Blog wouldn't let me attach the two Arduino .INO files, not sure why as they are only text. If anyone wants the full listings I will add them to this Blog later.

Anonymous

Top Comments

  • DAB
    DAB over 1 year ago +3

    Nice project.

     

    DAB

  • maxpowerr
    maxpowerr over 1 year ago +2

    Cool project well done!

  • kmikemoo
    kmikemoo over 1 year ago +2

    Loved the video.  Great project.

  • kmikemoo
    kmikemoo over 1 year ago

    Loved the video.  Great project.

    • Cancel
    • Up +2 Down
    • Reply
    • More
    • Cancel
  • DAB
    DAB over 1 year ago

    Nice project.

     

    DAB

    • Cancel
    • Up +3 Down
    • Reply
    • More
    • Cancel
  • maxpowerr
    maxpowerr over 1 year ago

    Cool project well done!

    • Cancel
    • Up +2 Down
    • Reply
    • More
    • Cancel
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube