Introduction: How to Get Real-Time Stocks Price With W5500 Ethernet Board
I'm an electronic engineer, and do some investment in stocks during my spare time. So I plan to combine these two parts and DIY a stocks-monitoring device.
Step 1: Part List
- Squama Ethernet PoE - Arduino W5500 Ethernet Board with PoE x1
- Grove - Piezo Buzzer x1
- HY2.0 4-pin cable x1
- RJ45 Ethernet cable x1
- Interchanger/ router with PoE x1
Squama Ethernet PoE is an Arduino development board with Ethernet function, built-inATSAMD21 micro-controller and W5500 network chip. The PoE tape mounted on the board provides power supply through network interface, so that you don’t need additional power device and cable.
NOTE:
- Squama Ethernet PoE includes an ethernet board and a PoE Tape.
- A Type-C cabe is necessary for code uploading.
- if you don't have a network device with PoE, it is also OK to give power supply through a Type-C cable.
Step 2: Hardware
Connect the modules as picture shown.
Step 3: Get Codes
This application is going to achieve two functions:
- 1. The buzzer rings when the stock price you are watching reaches the target line.
- 2. A red light flashes on the board when the stocks price you are watching goes up, and a green light flashes when it goes down.
First, you can get codes for the application from following link: https://github.com/Longan-Labs/Squama_US_Stock_Price_Buzzer
Step 4: Upload Codes
And then, you need to open it with Arduino IDE, and upload the codes onto Squama Ethernet PoE.
After uploaded, you can see datas in Serial Monitor as picture shows.