Skip to content

Learn react and a little bit of node.js and websockets ๐Ÿ˜Ž

Notifications You must be signed in to change notification settings

cctoni/cc-awesome-drones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

# codecentric awesome drones!

Watch the videos or follow us on our channels:

Follow us on IG TV and our blog. ๐Ÿ“บ Instagram TV โœ๏ธ Blog over at codecentric

Maybe youtube? ๐ŸคŸ

โš ๏ธ๏ธ๏ธ โš ๏ธโš ๏ธ๏ธ๏ธ ATTENTION: Drones can hurt you and your beloved colleagues. Use the codebase at your own risk. Donโ€™t be dumb and test the commands with removed propellers from your drone. Donโ€™t drink and fly. ๐Ÿคทโ€โ™‚๏ธ โš ๏ธ๏ธ๏ธ โš ๏ธ๏ธ๏ธ โš ๏ธ๏ธ๏ธ

Software Used

  • React (with React Hooks!)
  • Later on styling with maybe styled components or tailwind.css
  • Node.js and UDP4 sockets for communicating with drone
  • Socket.io WebSockets for sending data to/from the browser
  • Next.js for easy react setup scaffolding

Hardware Used

  • DJI Tello Drone
  • Extra Batteries - The Drone comes with one battery, but for continual development I recommend two batteries or more โ€” one in the charger and one in the drone. For flying away from your house you definitely need at least 3 as they only last about 10-15 mins.
  • Fast Battery Charger with 4 slots

How to use this code

Frontend

  1. cd ui
  2. npm i yep itโ€™s a nifty shorthand ๐Ÿ†’
  3. npm run dev

Backend

  1. cd backend
  2. npm install
  3. connect to drone via wifi - your computer really can do this ๐Ÿ›ธ
  4. npm start

Troubleshooting

Docs for Tello are available here

Ensure to update your firmware. You can do this via the Tello app on your phone. โ›‘๏ธ If you lose your WIFI connection to the drone, restart the server (backend) by typing rs into the terminal. This will re-run the famous command commandtelling our drone that you are the awesome SDK hack0r. If not all your commands sent to the drone will be ignored.

One does not simply send commands. ๐Ÿ˜

License โ€” WTFPL ๐ŸคŸ

Use this as a basis for your cool, experimental stuff. Please use it, hack it and if you like share your enhancements via PR.

Examples & Resources

  • jsolderitsch/tello-nodejs - was the inspirational code for this project
  • I need to find a way to stream video to the browser - maybe WebRTC ๐Ÿ™‡โ€โ™‚๏ธ
  • Link your repo here for others to learn! ๐Ÿ’โ€โ™‚๏ธ

About

Learn react and a little bit of node.js and websockets ๐Ÿ˜Ž

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages