Tpyboard V102: STM32 Development Board capable of running Python

Source: Internet
Author: User

Recently Micropython language hardware programming is very fire, followed by the start to support the development of Micropython language programming board also started fire hot, today small series on and we introduce a very classic Micropython Development Board-tpyboardv102 Development Board.

  A Onboard Hardware Resources Introduction

In accordance with the Convention to introduce a hardware composition of the Development Board, the personal feel that the performance of the development Board is quite good, the following detailed introduction.

TPYBOARDV102 is a Micropython development Board made by Turnipsmart company based on Micropython licensed by MIT, which transmits data via USB interface on the basis of stm32f405 MCU. The board is built with 4 LEDs, an accelerometer, and the voltage between the 3v-10v works properly.

The master chip uses the STM32F405,M4 core, 168MHZ maximum operating speed, 1024KB of flash,192kb RAM, this configuration can be done to meet most of the experimental learning and industrial development.

SD card storage function, the maximum support 8G memory memory card, completely do not worry about the data collected no place, revealing a little secret, this board emergency time can also cameo a card reader.

Onboard four LED lights, can be used to indicate the current code of the running state, do a variety of alarm or status display, and so on, really boring can do a running water lamp, breathing lights or running water breathing lights are OK.

The TPYBoardV102 Development Board has an accelerometer that reads the tilt and motion of the current board, and can do a real-time monitoring of motion conditions.

The board contains two keys, one is the reset button and the other is for the user to customize.

TPYBOARDV102 Development Board

  Two. Introduction to onboard Interface resources

This paper introduces the on-board hardware device, then introduces the hardware interface resources on the board:

Number of interfaces remarks

GPIO 30 supports 5V with 28

SPI 2

CAN 2

I²c 2

USART 5

ADC 12 Accuracy 12bit

DAC 2

SWD 1

TPYBoardV102 Development Board PIN diagram

These hardware interface resources are fully sufficient for experimentation and development.

  Three. Typical Experiment introduction

Next, I'll introduce some of the small experiments I've done with this board.

  1. Onboard Device Experiment Introduction

Let's start with an experiment on a used onboard device:

Using an accelerometer in the onboard accelerometer and LED light, the experiment is based on the return value of the accelerometer and is judged by the returned values to reflect the status of the current Development Board through the status of the onboard LED light.

This function is very practical, can use this function can detect many objects in real-time motion state, the most classic I feel is in the car crash test application.

  2. Connecting Peripherals Experiment Introduction

The development Board with a lot of hardware interface, very convenient for everyone to connect peripherals, the following is a few more classic and commonly used peripheral devices on the TPYBOARDV102 Development Board use:

  1. Acousto-optic light control Night Light

Using the TPYBOARDV102 Development Board to connect the photoresistors sensor and the microphone sensor, do a sound and light control Night Light Experiment, the lamp on the board with the LED on it.

Although this experiment is very simple, but it is very straightforward to explain the basic principle of voice-activated light, in this experiment at the same time using the ADC interface and Gpio interface, in learning is very practical;

  2. Intelligent Brightness adjustment Night light

Using the TPYBOARDV102 Development Board to connect the photoresistors with onboard LED lights, you can do a location where the light is darker, the board LED lights the brighter the experiment.

This experiment, while using the ADC interface, also uses the function of the PWM output, and after doing this experiment, we can do experiments like breathing lights.

  3.DIY Clock

Use the TPYBOARDV102 board to connect the LCD5110 display and the DS3231 clock module to create a real-time display of temperature and time-date small electronic meter, if you add a buzzer can be made into an alarm clock.

This experiment is mainly to learn to use the LCD5110 display and the DS3231 clock module, the most important thing is to learn the SPI and I²c hardware interface usage, learn SPI and I²c hardware interface can use some of the SPI and I²c interface devices.

  4.DIY Temperature and humidity meter

The use of TPYBOARDV102 Development Board to connect LCD5110 display and DHT11 to make a temperature and humidity detector, this is very practical, the board does not do experiments can be placed on the table and can look at the temperature and humidity what, with their own things, the mood is certainly not the same.

The experiment is mainly in the use of DHT11 devices and single-bus use, the main or learning the use of single-bus, learned the use of a single bus, you can use a lot of similar DHT11 and 18B20 devices, but also can use a single bus communication between two chips.

  5. Infrared Tracing Trolley

Using the TPYBOARDV102 Development Board to connect the Infrared sensor module with the car chassis, make an infrared tracing car.

This experiment is very simple, mainly to learn how to use the l298n Motor Drive module.

  6. Bluetooth Wireless Trolley

Using the TPYBOARDV102 Development Board to connect the Bluetooth module with the car chassis to make a Bluetooth wireless car, Bluetooth wireless car should be able to be considered the classic inside the Smart car, the Development Board to do the Smart Car DIY experiment production is very good.

This experiment is best based on the basis of the infrared tracking car to do, at the same time learning a serial port of use, the personal feeling of the Development Board of the use of the serial port is still very user-friendly, the configuration of the serial port is very simple, only need a line of code, for the serial port data can be sent and received only one line of code

About the serial port, there is a bit of personal feeling very useful function encapsulation, that is, I do not need to use the serial port, you can turn off the serial port, but also only need a code to complete, so in the long-term work can save a lot of power consumption, but also can reduce some unnecessary interference.

Here is a simple introduction to these small experiments, more experiments and tutorials you can access:

www.micropython.net.cn

There are many routines and tutorials, which are completely open to the public, very convenient for everyone to learn.

  

Tpyboard V102: STM32 Development Board capable of running Python

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.