279 views|3 replies

3

Posts

0

Resources
The OP
 

Follow me Season 2 Episode 2】Submit all tasks [Copy link]

 This post was last edited by Sunny Rainy Day on 2024-10-1 00:57

1. Unboxing Hardware Introduction

69d3ecc06220ca45f353165390e83f5c

  • The hardware selected is the Arduino UNO R4 WiFi development board and the SHT40 temperature and humidity sensor expansion board, as well as a Qwiic cable. The hardware selected is the Arduino UNO R4 WiFi development board and the SHT40 temperature and humidity sensor expansion board, as well as a Qwiic cable. The hardware selected is the Arduino UNO R4 WiFi development board and the SHT40 temperature and humidity sensor expansion board, as well as a Qwiic cable.

  • 2. Getting Started Tasks

  • 1. Build the environment

  • Go to the official website and download ( Software | Arduino ) the version corresponding to your computer and install it. Go to the official website and download ( Software | Arduino ) the version corresponding to your computer and install it.

  • There may be a problem and the development board cannot be installed

    Solution:

  • Hanging ladder (very useful when installing the library)
  • Open the VPN, in Preferences, click Network to manually configure the proxy host number: localhost port number: 7890 (the port set by the VPN)

2. Change the network, use the mobile data to download, and use the USB sharing network on the mobile phone (tested and effective)

3. Manually download the installation package and put it in the file directory of Arduino (commonly used for ESP32 and other microcontrollers)

3. Blink / Serial port printing

Just add serial port initialization and serial port output based on the bink routine.

blink

IV. Basic Tasks

1. Drive 12x8 dot matrix LED

I didn't use Arduino often before. When I saw the LED matrix before I got the board, I thought I needed to write a host computer to display the pattern. Then I found that the official package had been done. It's really great. For this reason, I think Arduino is great!

1.1 Display Pattern

Use the following two examples

Using the Arduino UNO R4 WiFi LED Matrix | Arduino Documentation

How to use the URL.

After downloading the LivePreview example, when you use the web page to draw, the board LED will display the drawing group in real time. Then click to download the drawn group and replace the .h file in the Matrix Frame Buffer project.

文字

1.2 Display text

Download the LED example - Matri - > TexWithArduinoGraphics to display text (ArduinoGraphics library needs to be installed)

文字

2. Generate a sine wave using a DAC; amplify the DAC signal using an OPAMP

Referring to the explanation in the big brother's video, the generation of sine waves can be achieved with just a few lines of code, which is very convenient (the convenience is much better than STC and STM32).

OPAMP amplifies the output, refer to the official documentation. There is an op amp inside, and I reviewed the knowledge of op amps. Just connect it according to the formula below and the official diagram. If the resistors are the same, Vout=2*Vin

reference:

Arduino UNO R4 Wi-Fi and Tasks - FollowMe Season 2: 2 - Arduino UNO R4 Wi-Fi and Tasks - EEWORLD University

docs.arduino.cc/tutorials/uno-r4-wifi/opamp

Electronics newbie can't learn how to use op amps? Just master these two uses at the beginning!

3. Use ADC to collect and print data to the serial port or other interfaces, and then upload it to the host computer for display

Based on the above, you only need to configure the ADC acquisition, connect the corresponding pin to the output, and print the data through the serial port.

5. Extended task : Upload temperature and humidity to HA through external SHT40 temperature and humidity sensor, and display data through HA panel

The Ha platform uses the modified Wanke Cloud (CasaOS and Home Assistant are installed directly on Taobao for about 50 yuan) and then installs hacs, but the MQTT server cannot be installed, so I have to give up and install it on the computer.

Reference: How to install MQTT server with Mosquitto in HA

Install docker,

If the CPU does not have virtualization enabled, enter the BIOS and enable virtualization.

After configuration, HA connects to MQTT, and then the development board can be connected. The code is as follows

reference:

【Follow me Season 2 Episode 2】Task 3, Home Assistant +EMQX+Arduino mqtt - DigiKey Technology Zone - Electronic Engineering World - Forum (eeworld.com.cn)

【Follow me Season 2 Episode 2】Arduino Uno R4 WiFi connects to Home Assistant via MQTT (Container Edition) - DigiKey Technology Zone - Electronic Engineering World Forum (eeworld.com.cn)

【Follow me Season 2 Issue 2】 Advanced Task Smart Home 3 MQTT access HA (homeassistant) - DigiKey Technology Zone - Electronic Engineering World - Forum (eeworld.com.cn)

6. Experience This
is my first time participating in this event. I realized the convenience and fast development speed of Arduino. I also learned how to build HA and learned some ideas and codes of other friends. I learned a lot. Thank you very much for your explanation!

Code

arduino-UNO-R4.zip (6.58 KB, downloads: 1)
This post is from DigiKey Technology Zone

Latest reply

Unable to install the development board solution: hang a ladder (very useful when installing the library), it feels okay, there are still many Chinese audiences, and it is not banned   Details Published on 2024-10-2 11:47
 
 

725

Posts

4

Resources
2
 

Thank you for your hard work. Thank you for sharing your technical knowledge. I have benefited a lot. Thank you again.

This post is from DigiKey Technology Zone
 
 
 

6027

Posts

6

Resources
3
 

Unable to install the development board solution: hang a ladder (very useful when installing the library), it feels okay, there are still many Chinese audiences, and it is not banned

This post is from DigiKey Technology Zone

Comments

Yes  Details Published on 2024-10-8 17:26
Personal signature

在爱好的道路上不断前进,在生活的迷雾中播撒光引

 
 
 

3

Posts

0

Resources
4
 
Qintianqintian0303 posted on 2024-10-2 11:47 Solution to failure to install development board: use a ladder (very useful when installing libraries), it feels okay, there are still many Chinese audiences, and it is not banned

Yes

This post is from DigiKey Technology Zone
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list