Convert currency
Work with remote data using an API and the Pi Pico W to make a live currency converter.
YOU NEED
» Raspberry Pi Pico W
» Code: https:// github.com/ lesp/LXF-Pi-Special/ archive/refs/ heads/main. zip
The only outward difference between the Pico and Pico W is the large silver square in which the Wi-Fi chip resides.
QUICK TIP
JSON (JavaScript Object Notation) is convenient and easy to use, but large objects can become jumbles of noise. Use an online viewer (http:// jsonviewer. stack.hu) to explore the data and find the correct keys.
In this project, we’re creating a simple app to get the latest exchange rates for the euro and US dollar against the UK pound. The Raspberry Pi Pico W comes with MicroPython, a version of Python 3 for microcontrollers. It is regularly updated and new versions can be found at https://bit. ly/lxf298upython. It’s a good idea to update MicroPython and ensure you get the version for the Pico W, as it has extra modules for Wi-Fi connectivity.