|
1 |
| -Ameba ARDUINO Getting Started |
2 |
| -============================= |
| 1 | +Ameba ARDUINO with AMB82-mini (RTL8735B) |
| 2 | +======================================== |
3 | 3 |
|
4 | 4 | .. contents::
|
5 | 5 | :local:
|
6 | 6 | :depth: 2
|
7 | 7 |
|
8 |
| -Ameba ARDUINO Getting Started with AMB82-mini (RTL8735B) |
9 |
| --------------------------------------------------------- |
10 |
| - |
11 | 8 | Introduction
|
| 9 | +------------ |
12 | 10 |
|
13 |
| -Ameba is an easy-to-program platform for developing all kinds of IoT |
14 |
| -applications. AMB82 MINI is equipped with various peripheral interfaces, |
15 |
| -including WiFi, BLE, GPIO INT, I2C, UART, SPI, PWM, ADC. Through these |
16 |
| -interfaces, AMB82 MINI can connect with electronic components such as |
17 |
| -LED, switches, manometer, hygrometer, PM2.5 dust sensors, …etc. Besides, |
18 |
| -AMB82 MINI has 3 key features, Audio codec, Video codec and NN (build in |
19 |
| -NPU for AIoT). The collected data can be uploaded via WiFi and be |
20 |
| -utilized by applications on smart devices to realize IoT implementation. |
| 11 | +Ameba is an easy-to-program platform for developing all kinds of IoT applications. AMB82 MINI is equipped with various peripheral interfaces, including WiFi, BLE, GPIO INT, I2C, UART, SPI, PWM, ADC. Through these interfaces, AMB82 MINI can connect with electronic components such as LED, switches, manometer, hygrometer, PM2.5 dust sensors, …etc. Besides, AMB82 MINI has 3 key features, Audio codec, Video codec and NN (build in NPU for AIoT). The collected data can be uploaded via WiFi and be utilized by applications on smart devices to realize IoT implementation. |
21 | 12 |
|
22 |
| -AMB82 mini is connected to the open-source world by one of the widest |
23 |
| -development environments, Arduino. For more information, HDK, SDK, API |
24 |
| -documents, Example Guides and so on, refer to the following Ameba |
25 |
| -Arduino SDK page https://www.amebaiot.com/en/ameba-arduino-summary/. |
| 13 | +AMB82 mini is connected to the open-source world by one of the widest development environments, Arduino. For more information, HDK, SDK, API documents, Example Guides and so on, refer to [Ameba Arduino SDK page](https://www.amebaiot.com/en/ameba-arduino-summary/). |
26 | 14 |
|
27 | 15 | |image01|
|
28 | 16 |
|
29 |
| -| AMB82 MINI uses Micro USB to supply power, which is common in many |
30 |
| - smart devices. |
31 |
| -| Please refer to the following figure and table for the pin diagram and |
32 |
| - functions. |
| 17 | +AMB82 MINI uses Micro USB to supply power, which is common in many smart devices. |
| 18 | + |
| 19 | +Please refer to the following figure and table for the pin diagram and functions. |
33 | 20 |
|
34 | 21 | |image02|
|
35 | 22 |
|
@@ -100,79 +87,66 @@ Arduino SDK page https://www.amebaiot.com/en/ameba-arduino-summary/.
|
100 | 87 | +--------+----------+----------+---------+---------+------------+-----------+-----------+----------+---------------+
|
101 | 88 |
|
102 | 89 | Set up developing environment
|
| 90 | +----------------------------- |
103 | 91 |
|
104 | 92 | Step 1. OS environment
|
| 93 | +~~~~~~~~~~~~~~~~~~~~~~ |
105 | 94 |
|
106 |
| -AMB82 MINI board currently supports Windows OS 64-bits (Windows 10 and |
107 |
| -above), Linux OS (Ubuntu22 and above) and MacOS (Intel and Apple |
108 |
| -Silicon). To have the best experiences, please use the latest version of |
109 |
| -OS. |
| 95 | +AMB82 MINI board currently supports Windows OS 64-bits (Windows 10 and above), Linux OS (Ubuntu22 and above) and MacOS (Intel and Apple Silicon). To have the best experiences, please use the latest version of OS. |
110 | 96 |
|
111 |
| -For any Linux OS (Ubuntu) related issues, refer to |
112 |
| -https://forum.amebaiot.com/t/ubuntu-linux-environment/2259. |
| 97 | +For any Linux OS (Ubuntu) related issues, refer to https://forum.amebaiot.com/t/ubuntu-linux-environment/2259. |
113 | 98 |
|
114 |
| -For any macOS related issues, refer to |
115 |
| -https://forum.amebaiot.com/t/macos-environment/2260. |
| 99 | +For any macOS related issues, refer to https://forum.amebaiot.com/t/macos-environment/2260. |
116 | 100 |
|
117 | 101 | Step 2. Installing the Driver
|
| 102 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
118 | 103 |
|
119 | 104 | First, connect AMB82 MINI to the computer via Micro USB:
|
120 | 105 |
|
121 | 106 | |image03|
|
122 | 107 |
|
123 |
| -| If this is the first time connects board to computer, the USB driver |
124 |
| - for board will be automatic installed. |
125 |
| -| If you have driver issue of connect board to computer please go |
126 |
| - to http://www.wch-ic.com/downloads/CH341SER_ZIP.html for USB driver. |
127 |
| -| Check the COM port number in Device Manager of computer: |
| 108 | +If this is the first time connects board to computer, the USB driver for board will be automatic installed. |
| 109 | + |
| 110 | +If you have driver issue of connect board to computer please go to http://www.wch-ic.com/downloads/CH341SER_ZIP.html for USB driver. |
| 111 | + |
| 112 | +Check the COM port number in Device Manager of computer: |
128 | 113 |
|
129 | 114 | |image04|
|
130 | 115 |
|
131 | 116 | Step 3. Set up Arduino IDE
|
| 117 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
132 | 118 |
|
133 |
| -| From version 1.6.5, Arduino IDE supports third-party hardware. |
134 |
| - Therefore, we can use Arduino IDE to develop applications, and the |
135 |
| - Arduino basic examples are supported. Arduino IDE can be downloaded in |
136 |
| - the Arduino website: |
137 |
| -| https://www.arduino.cc/en/Main/Software |
| 119 | +From version 1.6.5, Arduino IDE supports third-party hardware. Therefore, we can use Arduino IDE to develop applications, and the Arduino basic examples are supported. Arduino IDE can be downloaded in the Arduino website: https://www.arduino.cc/en/Main/Software |
138 | 120 |
|
139 |
| -When the installation is finished, open Arduino IDE. To set up correctly |
140 |
| -in Arduino IDE, go to “File” -> “Preferences” |
| 121 | +When the installation is finished, open Arduino IDE. To set up correctly in Arduino IDE, go to “File” -> “Preferences” |
141 | 122 |
|
142 | 123 | |image05|
|
143 | 124 |
|
144 |
| -| And paste the following URL into “Additional Boards Manager URLs” |
145 |
| - field: |
146 |
| -| https://github.com/ambiot/ambpro2_arduino/raw/main/Arduino_package/package_realtek.com_amebapro2_index.json |
| 125 | +And paste the following URL into “Additional Boards Manager URLs” field: https://github.com/ambiot/ambpro2_arduino/raw/main/Arduino_package/package_realtek.com_amebapro2_index.json |
147 | 126 |
|
148 | 127 | Next, go to “Tools” -> “Board” -> “Boards Manager”:
|
149 | 128 |
|
150 | 129 | |image06|
|
151 | 130 |
|
152 |
| -The “Boards Manager” requires about 10~20 seconds to refresh all |
153 |
| -hardware files (if the network is in bad condition, it may take longer). |
154 |
| -Every time the new hardware is connected, we need to reopen the Board |
155 |
| -Manager. Find “Realtek Ameba Boards” in the list, click “Install”, then |
156 |
| -the Arduino IDE starts to download required files. |
| 131 | +The “Boards Manager” requires about 10~20 seconds to refresh all hardware files (if the network is in bad condition, it may take longer). |
| 132 | + |
| 133 | +Every time the new hardware is connected, we need to reopen the Board Manager. Find “Realtek Ameba Boards” in the list, click “Install”, then the Arduino IDE starts to download required files. |
157 | 134 |
|
158 | 135 | |image07|
|
159 | 136 |
|
160 |
| -After the installation tool running successfully, you may open Arduino |
161 |
| -IDE and proceed to “tools” -> “Board“ -> “Boards Manager…”. Try to find |
162 |
| -“Realtek Ameba Boards” in the list, click “Install”, then the Arduino |
163 |
| -IDE starts to download required files. |
| 137 | +After the installation tool running successfully, you may open Arduino IDE and proceed to “tools” -> “Board“ -> “Boards Manager…”. Try to find “Realtek Ameba Boards” in the list, click “Install”, then the Arduino IDE starts to download required files. |
164 | 138 |
|
165 |
| -Finally, we select board in “tools” -> “Board” -> “AmebaPro2 ARM |
166 |
| -(32-bits) Boards” -> “AMB82-MINI” |
| 139 | +Finally, we select board in “tools” -> “Board” -> “AmebaPro2 ARM (32-bits) Boards” -> “AMB82-MINI” |
167 | 140 |
|
168 | 141 | |image08|
|
169 | 142 |
|
170 | 143 | Try the First Example
|
| 144 | +--------------------- |
171 | 145 |
|
172 | 146 | Step 1. Selection Ameba Modes
|
| 147 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
173 | 148 |
|
174 |
| -There are many different Modes for user to select for different settings |
175 |
| -of compile and upload. Please refer to the following picture and table. |
| 149 | +There are many different Modes for user to select for different settings of compile and upload. Please refer to the following picture and table. |
176 | 150 |
|
177 | 151 | |image09|
|
178 | 152 |
|
@@ -203,129 +177,122 @@ of compile and upload. Please refer to the following picture and table.
|
203 | 177 | +----------------------------------+------------------------------------------+-------------+
|
204 | 178 |
|
205 | 179 | Step 2. Compile
|
| 180 | +~~~~~~~~~~~~~~~ |
| 181 | + |
| 182 | +Arduino IDE provides many built-in examples, which can be compiled, uploaded, and run directly on the boards. Here, we take the “Blink” example as the first try. |
206 | 183 |
|
207 |
| -| Arduino IDE provides many built-in examples, which can be compiled, |
208 |
| - uploaded, and run directly on the boards. Here, we take the “Blink” |
209 |
| - example as the first try. |
210 |
| -| Open “File” -> “Examples” -> “01.Basics” -> “Blink”: |
| 184 | +Open “File” -> “Examples” -> “01.Basics” -> “Blink”: |
211 | 185 |
|
212 | 186 | |image10|
|
213 | 187 |
|
214 | 188 | Arduino IDE opens a new window with the complete sample code.
|
215 | 189 |
|
216 |
| -Next, we compile the sample code directly; click “Sketch” -> |
217 |
| -“Verify/Compile” |
| 190 | +Next, we compile the sample code directly; click “Sketch” -> “Verify/Compile” |
218 | 191 |
|
219 |
| -Arduino IDE prints the compiling messages in the bottom area of the IDE |
220 |
| -window. When the compilation is finished, you will get the message as |
221 |
| -following. |
| 192 | +Arduino IDE prints the compiling messages in the bottom area of the IDE window. When the compilation is finished, you will get the message as following. |
222 | 193 |
|
223 | 194 | |image11|
|
224 | 195 |
|
225 | 196 | Afterwards, we will upload the compiled code to board.
|
226 | 197 |
|
227 | 198 | Step 3. Upload
|
| 199 | +~~~~~~~~~~~~~~ |
228 | 200 |
|
229 |
| -Please make sure board is connected to computer, then click “Sketch” -> |
230 |
| -“Upload”. |
| 201 | +Please make sure board is connected to computer, then click “Sketch” -> “Upload”. |
231 | 202 |
|
232 |
| -The Arduino IDE will compile first then upload. Users are required to |
233 |
| -enter the upload mode of the board. To enter upload mode, first press |
234 |
| -and hold the UART_DOWNLOAD button, then press and release the RESET |
235 |
| -button, lastly release the UART_DOWNLOAD button. |
| 203 | +The Arduino IDE will compile first then upload. Users are required to enter the upload mode of the board. To enter upload mode, first press and hold the UART_DOWNLOAD button, then press and release the RESET button, lastly release the UART_DOWNLOAD button. |
236 | 204 |
|
237 |
| -Additionally, if the board has the hardware updates and enabled “Auto |
238 |
| -Flash Mode”, please ignore above instruction. |
| 205 | +Additionally, if the board has the hardware updates and enabled “Auto Flash Mode”, please ignore above instruction. |
239 | 206 |
|
240 | 207 | |image12|
|
241 | 208 |
|
242 |
| -It is optional for users to check if the board entered the upload mode. |
243 |
| -Open serial monitor/terminal and check the following information,. |
| 209 | +It is optional for users to check if the board entered the upload mode. Open serial monitor/terminal and check the following information,. |
244 | 210 |
|
245 | 211 | |image13|
|
246 | 212 |
|
247 | 213 | When upload completed, the “Done uploading” message is printed.
|
248 | 214 |
|
249 |
| -Step 2. Run the Blink example |
| 215 | +Step 4. Run the Blink example |
| 216 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
250 | 217 |
|
251 |
| -| In each example, Arduino not only provides sample code, but also |
252 |
| - detailed documentation, including wiring diagram, sample code |
253 |
| - explanation, technical details, …etc. Please refer the detailed |
254 |
| - information of the Blink example: |
255 |
| -| https://www.arduino.cc/en/Tutorial/Blink |
| 218 | +In each example, Arduino not only provides sample code, but also detailed documentation, including wiring diagram, sample code explanation, technical details, …etc. Please refer the detailed information of the Blink example: https://www.arduino.cc/en/Tutorial/Blink |
256 | 219 |
|
257 | 220 | In short, this example makes on-board LED blinks.
|
258 | 221 |
|
259 | 222 | |image14|
|
260 | 223 |
|
261 | 224 | Video Tutorials and Demos
|
| 225 | +------------------------- |
262 | 226 |
|
263 | 227 | YouTube Channel:
|
264 | 228 |
|
265 |
| -- AMB82 Mini - Getting Started: https://youtu.be/_rLiih5RkXY . |
| 229 | +- AMB82 Mini: Start Here!: https://youtube.com/playlist?list=PLEQfNjOZQRyP1dyegDVYqgw53_AORspMK&feature=shared |
266 | 230 |
|
267 |
| -- AMB82 Mini tutorials list: |
268 |
| - https://youtube.com/playlist?list=PLEQfNjOZQRyPnmXCuRqE1f5au2HT4E9CP |
269 |
| - . |
| 231 | +- AMB82 Mini Tutorials: https://youtube.com/playlist?list=PLEQfNjOZQRyPnmXCuRqE1f5au2HT4E9CP&feature=shared |
270 | 232 |
|
271 |
| -- AMB82 Mini - 入門教學: https://youtu.be/-jQDpDFX2ao . |
| 233 | +- AMB82 Mini 教程: https://youtube.com/playlist?list=PLEQfNjOZQRyOxXFV7X_2fIcnd_J6VBmyM&feature=shared |
272 | 234 |
|
273 |
| -- AMB82 Mini 教程 list: |
274 |
| - https://youtube.com/playlist?list=PLEQfNjOZQRyOxXFV7X_2fIcnd_J6VBmyM |
275 |
| - . |
| 235 | +- AMB82 mini Maker Projects: https://youtube.com/playlist?list=PLEQfNjOZQRyPWhySw16ZgBOPWnzLWDAjz&feature=shared |
276 | 236 |
|
277 |
| -BiliBili Channel: https://space.bilibili.com/457777430 . |
| 237 | +BiliBili Channel: https://space.bilibili.com/457777430 |
278 | 238 |
|
279 | 239 | Useful Links
|
| 240 | +------------ |
| 241 | + |
| 242 | +Ameba Arduino SDK page: https://www.amebaiot.com/en/ameba-arduino-summary/ |
280 | 243 |
|
281 |
| -Ameba Arduino SDK page: |
282 |
| -https://www.amebaiot.com/en/ameba-arduino-summary/ . |
| 244 | +Forum: https://forum.amebaiot.com/ |
283 | 245 |
|
284 | 246 | FAQ: https://forum.amebaiot.com/t/welcome-to-ameba-faq/1748
|
285 | 247 |
|
286 |
| -Forum: https://forum.amebaiot.com/ . |
| 248 | +Facebook Group Chinese: https://www.facebook.com/groups/AmebaIoT |
287 | 249 |
|
288 |
| -Facebook Group Chinese: https://www.facebook.com/groups/AmebaIoT . |
| 250 | +Facebook Group English: https://www.facebook.com/groups/amebaioten |
289 | 251 |
|
290 |
| -Facebook Group English: https://www.facebook.com/groups/amebaioten . |
291 | 252 |
|
292 | 253 | .. |image01| image:: ../_static/Getting_Started/Getting_Started_with_AMB82-mini/image01.png
|
293 |
| - :width: 6.26806in |
294 |
| - :height: 4.24028in |
| 254 | + :width: 2000 px |
| 255 | + :height: 1353 px |
| 256 | + :scale: 40% |
295 | 257 | .. |image02| image:: ../_static/Getting_Started/Getting_Started_with_AMB82-mini/image02.png
|
| 258 | + :width: 4765 px |
| 259 | + :height: 1498 px |
| 260 | + :scale: 20% |
296 | 261 | .. |image03| image:: ../_static/Getting_Started/Getting_Started_with_AMB82-mini/image03.png
|
297 |
| - :width: 6.26806in |
298 |
| - :height: 6.12222in |
| 262 | + :width: 687 px |
| 263 | + :height: 671 px |
299 | 264 | .. |image04| image:: ../_static/Getting_Started/Getting_Started_with_AMB82-mini/image04.png
|
300 |
| - :width: 6.26806in |
301 |
| - :height: 4.56432in |
| 265 | + :width: 602 px |
| 266 | + :height: 438 px |
302 | 267 | .. |image05| image:: ../_static/Getting_Started/Getting_Started_with_AMB82-mini/image05.png
|
303 |
| - :width: 4.97917in |
304 |
| - :height: 6.11458in |
| 268 | + :width: 478 px |
| 269 | + :height: 587 px |
305 | 270 | .. |image06| image:: ../_static/Getting_Started/Getting_Started_with_AMB82-mini/image06.png
|
306 |
| - :width: 6.26806in |
307 |
| - :height: 8.11042in |
| 271 | + :width: 660 px |
| 272 | + :height: 854 px |
308 | 273 | .. |image07| image:: ../_static/Getting_Started/Getting_Started_with_AMB82-mini/image07.png
|
309 |
| - :width: 6.26806in |
310 |
| - :height: 3.50486in |
| 274 | + :width: 778 px |
| 275 | + :height: 435 px |
311 | 276 | .. |image08| image:: ../_static/Getting_Started/Getting_Started_with_AMB82-mini/image08.png
|
312 |
| - :width: 6.26806in |
313 |
| - :height: 4.86528in |
| 277 | + :width: 773 px |
| 278 | + :height: 600 px |
314 | 279 | .. |image09| image:: ../_static/Getting_Started/Getting_Started_with_AMB82-mini/image09.png
|
315 |
| - :width: 5.38542in |
316 |
| - :height: 6.65257in |
| 280 | + :width: 476 px |
| 281 | + :height: 588 px |
317 | 282 | .. |image10| image:: ../_static/Getting_Started/Getting_Started_with_AMB82-mini/image10.png
|
318 |
| - :width: 5.78125in |
319 |
| - :height: 6.30208in |
| 283 | + :width: 555 px |
| 284 | + :height: 605 px |
320 | 285 | .. |image11| image:: ../_static/Getting_Started/Getting_Started_with_AMB82-mini/image11.png
|
321 |
| - :width: 6.26806in |
322 |
| - :height: 0.65556in |
| 286 | + :width: 669 px |
| 287 | + :height: 70 px |
323 | 288 | .. |image12| image:: ../_static/Getting_Started/Getting_Started_with_AMB82-mini/image12.png
|
324 |
| - :width: 6.26806in |
325 |
| - :height: 4.57222in |
| 289 | + :width: 1040 px |
| 290 | + :height: 758 px |
| 291 | + :scale: 80% |
326 | 292 | .. |image13| image:: ../_static/Getting_Started/Getting_Started_with_AMB82-mini/image13.png
|
327 |
| - :width: 6.26806in |
328 |
| - :height: 2.69375in |
| 293 | + :width: 854 px |
| 294 | + :height: 367 px |
| 295 | + :scale: 80% |
329 | 296 | .. |image14| image:: ../_static/Getting_Started/Getting_Started_with_AMB82-mini/image14.png
|
330 |
| - :width: 4.19792in |
331 |
| - :height: 6.9375in |
| 297 | + :width: 403 px |
| 298 | + :height: 666 px |
0 commit comments