background image

Air:bit 2

makekit.no

The micro:bit drone

Содержание Air:bit 2

Страница 1: ...Air bit 2 makekit no The micro bit drone...

Страница 2: ...adioGroup in makecode before downloading to micro bit both transmitter and receiver Flying Use an open space close to where you build the drones A soft carpet is better than a hard surface in case of...

Страница 3: ...V2 V2 The remote control works great on both micro bit V1 and V2 Air bit 2 relies on the micro bit for high speed calculations and stabilisation Therefore we highly recommend using micro bit V2 on th...

Страница 4: ...4 If you experience trouble getting the air bit to fl y please see page 61...

Страница 5: ...prevent damage do Don t charge the batteries unattended Don t use a damaged or punctured battery Do not short circuit the battery Avoid temperatures below 10 and 50 degrees celcius Don t use batteries...

Страница 6: ...it org hardware micro bit is a small computer with prosessor sensors display and radio It has connection pins for external components like LEDs speakers or various sensors Antenna 2 4 gHz Reset button...

Страница 7: ...ster processor and more memory The gold teeth looks different compared to V1 for better grip with crocodile clips Air bit can work on V1 and V2 but V2 gives more processing power for advanced users An...

Страница 8: ...osoft make code 1 cell 3 7v 800 mAh LiPo battery Air bit control board with charger Propeller protection mount Expansion ports Servo kamera i2c serial jst picoblade Air bit 2 More info Visit airbit no...

Страница 9: ...Hand control micro bit AA battery pack Farnell Holder plywood Throttle indicator Flight directions roll pitch Rotation yaw Motion based control with accelerometer Increase altitude Decrease altitude...

Страница 10: ...it i2c sensors Micro servo camera Red Charging Green Finished USB power charging Front right motor Servo connector Back right motor Front left motor Back left motor Battery plug Control board Servo co...

Страница 11: ...4 spacers m3x20 2 nylon screw countersunk Control board 4 wedges Micro bit battery box 5 aluminium Spacer rings 2 micro bits 1 micro usb cable 1 Lithium LiPo battery Red silicone ring the universal mi...

Страница 12: ...Tools 12 Small philips screwdriver Socket wrenches 5 5mm included...

Страница 13: ...plug into the grey connector 3 Connect the micro USB into the Airbit control board not the microbit 4 Connect the other end into a USB charge outlet 5 Red light indicates charging Green light indicat...

Страница 14: ...14 Assembly...

Страница 15: ...e the micro bit with screen facing up on top of the holder and mount it with the screws somewhat tightened Mount battery box with the silicone ring You can use different battery boxes Tools Philips Sc...

Страница 16: ...acers m3x20 Tools Philips Screwdriver Hook the rubber band from one knob under the frame to the next hook over the frame and back Mount the spacers with the screws Notice the text should face up while...

Страница 17: ...sert a wedge and wiggle it in place into the frame Then push the motor upwards to click into place All 4 motors Use both hands and both thumbs to push the motor forward Then pull the motor cables trou...

Страница 18: ...o the back side of the board where the big letters are Attatch the nuts with a screwdriver and a socket wrench Parts Countersunk screws 2 x Nylon nuts 2 x countersunk screws Control board Tools Philip...

Страница 19: ...backside of the board insert the 5 screws Hold the screws with your index fi nger while you fl ip the control board Insert the 5 spacer rings Parts Control board 5 aluminium spacer rings 5 nylon screw...

Страница 20: ...the micro bit on the fi ve screws Carefully add the fi ve nuts and mount them loosely before lifting the unit Add some tension using a screwdriver and the socket wrench The screws must be slightly ti...

Страница 21: ...ls Wrench 5 5mm Assembling the drone 2x nylon nuts Flip the drone upside down Attach the control board with two nuts underneath the drone Slightly tighten with the wrench Plug each motor in the neares...

Страница 22: ...r band in the very center of the drone To power the drone connect the battery to the grey connector Disconnect the battery whenever you are not using or charging the drone The battery can su ff er ove...

Страница 23: ...unction When the green light is lit battery has su ffi cent power for fl ight A red light indicates that the battery needs to charge Do not attempt to fl y the drone after this light has been seen Dis...

Страница 24: ...24 For your safety Mount the propellers after testing the drone Can you start and stop the motors in a controlled manner...

Страница 25: ...Place it on a table able to spin 1 Blow gently straight down above 2 If it rotates with the clock its a CW propeller If it rotates against the clock its a CCW propeller Place all four propeller on the...

Страница 26: ...rts 4xBows 8xArms 8xSmall rubber rings Connect the bows and the arms with the rubber rings On each protector insert both arms onto the main frame Adjust so they are straight and do not obstruct the pr...

Страница 27: ...27 Ready for coding...

Страница 28: ...Coding...

Страница 29: ...29 PARTY Five values to control the drone...

Страница 30: ...pitch arm roll throttle yaw Arm Start propeller Roll Roll Pitch Pitch Yaw Nose direction Variable Minimum Neutral Maximum Arm 0 1 Throttle 0 50 100 Pitch 45 0 45 Roll 45 0 45 Yaw 30 0 30 Control the d...

Страница 31: ...Start coding makecode microbit org...

Страница 32: ...ze data Send data Four steps Collecting data for Pitch Arm Roll Throttle Yaw Convert the values to coordinates for the display Send the value over the radio Receive the values and turn the into contro...

Страница 33: ...Start at makecode microbit org Chrome is recommended for better connection with the micro bit Select New project PS If you re new to micro bit you should try one of the tutorials above fi rst...

Страница 34: ...here On start Code that will run once at startup Code that will repeat forever Name your project Download to micro bit Save a backup Block mode Javascript mode Share your code Main menu Settings Undo...

Страница 35: ...35 Get the variables and code the remote Start by giving your project a name like Sender group x This is your unique radio channel If you are fl ying alone you can use channel 7 Sender group 1...

Страница 36: ...Code blocks We will be using these blocks 36...

Страница 37: ...37 More blocks...

Страница 38: ...n the forever loop to verify that throttle is changing correctly When above 40 throttle should only change by 1 for better precision when drone is hovering Roll og Pitch Make a variable called Roll an...

Страница 39: ...39 Solution...

Страница 40: ...ssing A B change the Arm between 0 and 1 If Arm is 1 make it 0 and visa versa Use Show Number Arm to verify When pressing A B also reset throttle to 0 Disarmed Armert 40 Bryteren setter Arm til 0 og 1...

Страница 41: ...41 Solution...

Страница 42: ...be handy It will cut off the motors immediately Task Use the On Shake feature to disarm the drone It will detect a shake from the remote control Think twice before using the feature from above 2 mete...

Страница 43: ...43 Solution...

Страница 44: ...iv Roll Pitch niv We can use the display to show basic information from our PARTY values Arm pixel lights when armed Throttle pixel moves upwards when throttle increases thrust Roll and pitch is the X...

Страница 45: ...if the drone is armed Find the forever block Insert a clear screen block Use the if block to check if arm is on armed If armed plot at 0 0 or another place off your choice Visualise Arming Extra chall...

Страница 46: ...46 Solution...

Страница 47: ...to translate our numbers according to the table below so that 0 gives 4 50 gives 2 and 100 gives 0 Can you solve the equations Hint We need to do a division in the fi rst calculation Then we need to...

Страница 48: ...48 Throttle 25 goes in the inner block Solution Pixel Y 4 throttle 25...

Страница 49: ...d to translate our numbers according to the table below so that 45 gives 0 0 gives 2 and 45 gives 4 Can you solve the equations Hint We need to do an addition in the fi rst calculation Then we need to...

Страница 50: ...tion goes before subtraction and addition automatically You will need parentheses if you want the or to be done fi rst Be careful There is not much room for typing errors in javascript Division before...

Страница 51: ...51 We can also map the values using this block An easier alternative to functions Original value Lowest expected value Highest expected value Lowest output value Highest output value Example...

Страница 52: ...52 Two solutions With mapping With functions...

Страница 53: ...t it in the simulator The center dot follows the mouse arrow s movement The throttle pixel on the left is rising when pressing B multiple times A B results in a lit ARM pixel and throttle will go down...

Страница 54: ...called radioGroup or similar and set it to your radio channel Show the number Use radio set group to make the channel take effect We need to transmit a letter string in pair with the number for the r...

Страница 55: ...55 Bottom of forever block Remember capital letters Yaw can be skipped Solution Your unique radio group...

Страница 56: ...s as a drive 3 Press Download and copy the fi le to the MICROBIT drive 4 Watch the orange light on the back and make sure it fl ashes when code is downloaded Download the code Read more about connecti...

Страница 57: ...led Airbit 2 or Wonderbit Airbit 2 Open the fi le in the editor Click import and select the fi le 3 Make sure you have the right radio group to match your transmitter 4 Download the code as seen on th...

Страница 58: ...onnect the battery The drone will check for sensors and calibrates If you get no gyro check the 5 top screws and reconnect power If you get no pca disconnect USB and battery and connect only battery G...

Страница 59: ...pellers by pressing A B simultaneously Increase throttle step by step until the drone is hovering 10 30 cm above the ground Move the micro bit transmitter to steer the drones roll and pitch As soon as...

Страница 60: ...60 How to fl y video https youtu be VMF9uehLfg8...

Страница 61: ...No Motor controller the connection is not stable thighten the nuts Disconnect reconnect battery Look for the letters G and M during startup Have you placed the correct propeller on the right motor Pag...

Страница 62: ...When conducting electricity from your fi ngers the analog read can be about 800 Using a treshold on about 500 you can detect a fi nger press When a press is detected change the yaw to a negative numbe...

Страница 63: ...63 Yaw Solution...

Страница 64: ...orwards Pitch by increasing power at the two back motors while decreasing power to the front motors This tilts the drone forward Sideways movement is done by speeding up two motors at one side eg left...

Страница 65: ...www makekit no support makekit no makekit gomakekit also twitter Contact Get tips and help in our Facebook community www facebook com groups goairbit...

Отзывы: