跳到主要内容
编程入门 — Python, Java, C, SQL & Web

Arduino

Program a real Arduino Uno: LEDs, buttons, sensors, sound and a servo, and build the circuits on a breadboard, all in your browser.

  • arduino
  • 84 课程
  • 在浏览器中运行

此设备:完成 0 / 84 门课程

开始课程

每节课均在浏览器中运行——编写真实代码,点击运行,任务自动检查。免费,无需账户,配有与英文对照的翻译笔记。

本课程中的课程

显示 84 / 84 门课程

  1. Lesson 1: Blink Meet the Arduino · setup and loop Lesson 1 · 2 项必做任务 · ★★
  2. Lesson 2: More LEDs One pin for each LED · A traffic light Lesson 2 · 2 项必做任务 · ★★★
  3. Lesson 3: Names and variables Give pins a name · A variable can change Lesson 3 · 2 项必做任务 · ★★★
  4. Lesson 4: for loops Do it several times · A row of LEDs Lesson 4 · 2 项必做任务 · ★★★
  5. Lesson 5: Buttons Reading a pin Lesson 5 · 2 项必做任务 · ★★★
  6. Lesson 6: The Serial Monitor The board can talk Lesson 6 · 2 项必做任务 · ★★
  7. Lesson 7: Analog input More than on and off · A night light Lesson 7 · 2 项必做任务 · ★★★
  8. Lesson 8: Brightness with PWM Half on · From a knob to brightness Lesson 8 · 2 项必做任务 · ★★★
  9. Lesson 9: Sound and functions A buzzer · Your own function Lesson 9 · 2 项必做任务 · ★★★
  10. Lesson 10: A servo motor Turn to an angle Lesson 10 · 2 项必做任务 · ★★★
  11. Lesson 11: Build the circuit From pins to parts · A complete loop · Inputs need wires too Lesson 11 · 3 项必做任务 · ★★★
  12. Lesson 12: Reaction game How fast are you? · A clock inside the board · Wait for the button Lesson 12 · 2 项必做任务 · ★★★
  13. Lesson 13: A smart night light A light that thinks · From a reading to a brightness · Watch the numbers Lesson 13 · 2 项必做任务 · ★★★
  14. Lesson 14: The car park gate A gate that counts · Move the arm · Counting with a variable Lesson 14 · 2 项必做任务 · ★★★
  15. Lesson 15: Morse code beacon Messages in light and sound · The timing rules · Functions save typing Lesson 15 · 2 项必做任务 · ★★★★
  16. Lesson 16: Traffic lights A light on every corner · One cycle · Names for pins Lesson 16 · 2 项必做任务 · ★★★
  17. Lesson 17: Parking sensor Hear the distance · The rule: pause = 10 × distance · One beep Lesson 17 · 2 项必做任务 · ★★★★
  18. Lesson 18: Electronic dice Roll without a dice · Which LEDs are on? · A random number Lesson 18 · 2 项必做任务 · ★★★★
  19. Lesson 19: Thermometer How warm is it? · From a reading to °C · From °C to LEDs · Decimal numbers Lesson 19 · 2 项必做任务 · ★★★★
  20. Lesson 20: Melody player A song in a list · Notes and their numbers · Reading an array · How long is the tune? Lesson 20 · 2 项必做任务 · ★★★★
  21. Lesson 21: Plant watering Water the plants while you are away · From a reading to percent · One limit or two? Lesson 21 · 2 项必做任务 · ★★★★
  22. Lesson 22: Binary counter Numbers made of lights · Place values · Read the bits Lesson 22 · 2 项必做任务 · ★★★★
  23. Lesson 23: Code lock A door that knows the code · What the lock does · One = or two? · How safe is 3 tries? Lesson 23 · 2 项必做任务 · ★★★★
  24. Lesson 24: Choose the resistor How bright, how safe? · The formula · LEDs in parallel Lesson 24 · 2 项必做任务 · ★★★★
  25. Lesson 25: Pull-down resistor Why a button needs a resistor · Two ways to wire a button · How much current? Lesson 25 · 2 项必做任务 · ★★★★
  26. Lesson 26: Voltage divider Share the voltage · The formula · From number to volts Lesson 26 · 2 项必做任务 · ★★★★
  27. Lesson 27: Smart greenhouse A greenhouse that looks after itself · The rules · A function that answers yes or no Lesson 27 · 2 项必做任务 · ★★★★★
  28. Lesson 28: Reaction duel Who is faster? · Waiting, two ways · AND and OR in a loop Lesson 28 · 2 项必做任务 · ★★★★★
  29. Lesson 29: Morse decoder Listen to Morse code · The timing · Some letters Lesson 29 · 2 项必做任务 · ★★★★★
  30. Lesson 30: Fridge door alarm The door is open! · Now and last time · A timer with millis() Lesson 30 · 2 项必做任务 · ★★★★★
  31. Lesson 31: State machine One state at a time · The turnstile's table · switch in C++ Lesson 31 · 2 项必做任务 · ★★★★★
  32. Lesson 32: Data logger Keep the readings · The standard methods · An array in C++ Lesson 32 · 2 项必做任务 · ★★★★★
  33. Lesson 33: Colour mixer Mix the light · Light colours Lesson 33 · 2 项必做任务 · ★★★★
  34. Lesson 34: Ultrasonic distance Measure with sound · How the sensor works Lesson 34 · 2 项必做任务 · ★★★★
  35. Lesson 35: Security alarm Logic that protects a shop · Logic in C++ Lesson 35 · 2 项必做任务 · ★★★★
  36. Lesson 36: Radar Look all around · Collect, decide, act Lesson 36 · 2 项必做任务 · ★★★★★
  37. Lesson 37: Bit shifts Move the bits · Read the LEDs · Shifts Lesson 37 · 2 项必做任务 · ★★★★
  38. Lesson 38: Secret messages Hide the message · The Caesar cipher with key 3 · Letters are numbers Lesson 38 · 2 项必做任务 · ★★★★
  39. Lesson 39: Parity check Did the data arrive safely? · Even parity · Count the 1s Lesson 39 · 2 项必做任务 · ★★★★
  40. Lesson 40: Check the input Stop bad data · Kinds of test data (range 1 to 100) · Read a number Lesson 40 · 3 项必做任务 · ★★★★
  41. Lesson 41: Check digit One extra digit · Work it out: 3216 · A character is a number Lesson 41 · 2 项必做任务 · ★★★★
  42. Lesson 42: Logic gates Gates you can press · Truth tables · Gates in C++ Lesson 42 · 2 项必做任务 · ★★★★
  43. Lesson 43: Squash the data Smaller, with nothing lost · RLE on a picture · A digit is a character Lesson 43 · 2 项必做任务 · ★★★★
  44. Lesson 44: Interrupts Stop what you are doing! · Polling or an interrupt? Lesson 44 · 2 项必做任务 · ★★★★
  45. Lesson 45: Two things at once Do not wait, check the clock · Is it time yet? · delay or millis? Lesson 45 · 2 项必做任务 · ★★★★
  46. Lesson 46: Spike filter One bad reading · Average or median? · An array in C++ Lesson 46 · 2 项必做任务 · ★★★★
  47. Lesson 47: Hex colours Colours as numbers · From a pair to a number Lesson 47 · 2 项必做任务 · ★★★★
  48. Lesson 48: Card reader Is this card allowed? · Search 4096 in {1042, 2817, 3355, 4096} Lesson 48 · 2 项必做任务 · ★★★★
  49. Lesson 49: Ohmmeter Measure a resistance · Share the 5 V Lesson 49 · 2 项必做任务 · ★★★★
  50. Lesson 50: Find the errors Be the tester · A good way to find errors Lesson 50 · 2 项必做任务 · ★★★★
  51. Lesson 51: Binary adder Add like a processor · 51 + 97 = 148 Lesson 51 · 2 项必做任务 · ★★★★
  52. Lesson 52: Logic from words From words to logic · Words to logic Lesson 52 · 2 项必做任务 · ★★★★
  53. Lesson 53: File size calculator How big is the file? · The two formulas Lesson 53 · 2 项必做任务 · ★★★
  54. Lesson 54: Negative numbers Below zero · Place values · Make −32 (flip and add 1) Lesson 54 · 2 项必做任务 · ★★★★
  55. Lesson 55: Checksum Did the data arrive safely? · The checksum steps Lesson 55 · 2 项必做任务 · ★★★★
  56. Lesson 56: Trace with the board Let the board check your trace · The exam algorithm (0478/22/O/N/24 Q7) Lesson 56 · 2 项必做任务 · ★★★★
  57. Lesson 57: Weather week A table of readings · readings[d][h] Lesson 57 · 2 项必做任务 · ★★★★
  58. Lesson 58: Sampling sound From sound wave to numbers · More or fewer bits? Lesson 58 · 2 项必做任务 · ★★★★
  59. Lesson 59: Character codes Letters are numbers too · Some ASCII codes Lesson 59 · 2 项必做任务 · ★★★
  60. Lesson 60: Symmetric encryption Lock it with a key · XOR with the key, bit by bit Lesson 60 · 2 项必做任务 · ★★★★
  61. Lesson 61: Clock maths Whole parts and remainders · 3725 seconds Lesson 61 · 2 项必做任务 · ★★★
  62. Lesson 62: Packets Small pieces, any route · HELLO WORLD in packets of 4 Lesson 62 · 2 项必做任务 · ★★★★
  63. Lesson 63: Echo check Send it back and compare · Error detection methods Lesson 63 · 2 项必做任务 · ★★★
  64. Lesson 64: Flowchart to sketch From flowchart to code Lesson 64 · 2 项必做任务 · ★★★
  65. Lesson 65: Data types The right box for each value · Whole-number division Lesson 65 · 2 项必做任务 · ★★
  66. Lesson 66: Check it twice Validation or verification? Lesson 66 · 2 项必做任务 · ★★★
  67. Lesson 67: Wait for the ACK No reply? Send it again · The first program, step by step Lesson 67 · 2 项必做任务 · ★★★★
  68. Lesson 68: Fetch, decode, execute Inside the CPU · The program in memory Lesson 68 · 2 项必做任务 · ★★★★
  69. Lesson 69: Presence and format checks Two more validation checks Lesson 69 · 2 项必做任务 · ★★★
  70. Lesson 70: Gates from switches Logic you can build Lesson 70 · 2 项必做任务 · ★★★
  71. Lesson 71: Binary search Halve it again and again · Find 47 Lesson 71 · 2 项必做任务 · ★★★★
  72. Lesson 72: Insertion sort Sort like playing cards · 42, 98, 13, 75, 87, 60 (highest first) Lesson 72 · 2 项必做任务 · ★★★★
  73. Lesson 73: Constants Give numbers a name Lesson 73 · 2 项必做任务 · ★★
  74. Lesson 74: Order of the tests The first true test wins · CASE in C++ Lesson 74 · 2 项必做任务 · ★★★
  75. Lesson 75: String handling Exam strings and C++ strings Lesson 75 · 2 项必做任务 · ★★★
  76. Lesson 76: Linked list Pointers give the order Lesson 76 · 2 项必做任务 · ★★★★
  77. Lesson 77: Stack Last in, first out Lesson 77 · 2 项必做任务 · ★★★★
  78. Lesson 78: Circular queue A queue that goes round Lesson 78 · 2 项必做任务 · ★★★★★
  79. Lesson 79: Records Fields that belong together Lesson 79 · 2 项必做任务 · ★★★
  80. Lesson 80: By value or by reference Copies or the real thing? Lesson 80 · 2 项必做任务 · ★★★★
  81. Lesson 81: Binary tree Left is earlier, right is later Lesson 81 · 2 项必做任务 · ★★★★★
  82. Lesson 82: Hash table Calculate where it goes Lesson 82 · 2 项必做任务 · ★★★★★
  83. Lesson 83: Recursion A function that calls itself Lesson 83 · 2 项必做任务 · ★★★★
  84. Lesson 84: Classes and objects One class, many objects Lesson 84 · 2 项必做任务 · ★★★★

登录或创建账户

IGCSE, A-Level & AP