Saifang Technology teaches you how to use RISC-V development board to realize automatic line patrol driving of small cars

Publisher:EE小广播Latest update time:2022-01-07 Source: EEWORLDKeywords:RISC-V Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Recently, DFRobot has developed a line patrol car exhibit, which uses a RISC-V main control development board equipped with the Saifang Technology JH7100 (Fang Jinghong 7100) chip and runs the Fedora Linux operating system. With the support of the PinPong Python library, the Mind+ programming software is used for GPIO control. The car uses the HUSKYLENS (Erha Image Recognition) visual sensor to perform intelligent route recognition and realize the function of automatic line patrol.


image.png



1. Exhibit Description


1. Saifang Technology JH7100


Fang Jinghong 7100 is equipped with dual-core U74, shares 2MB of L2 cache, operates at up to 1.2GHz, and supports Linux operating system. Among them, the ISP independently developed by Saifang Technology is compatible with mainstream sensors, and the built-in image and video processing subsystem supports H265/H264/JPEG codecs. The integration of high-performance, low-power Vision DSP and NNE makes application development smarter and more efficient. Fang Jinghong 7100 can complete various complex video image processing and intelligent visual computing to meet a variety of real-time visual processing requirements at the edge.


2. PinPong Library


image.png


The PinPong library is a Python library for controlling open source hardware main control boards. It is based on the Firmata protocol and is compatible with MicroPython syntax. You can use Python to control open source hardware in 5 minutes. With the help of the PinPong library, you can program various common open source hardware directly with Python code. The principle is to burn a specific firmware to the open source hardware so that the open source hardware can communicate with the computer through the serial port and execute various commands. The design of the PinPong library is to allow developers to focus on the business implementation of software without being bound by complicated hardware models during the development process. Even if the program is developed with Arduino in the early stage of writing and changed to the main control development board during deployment, it can run normally by modifying the hardware parameters, realizing "write once and run everywhere". With the joint efforts of engineers from DFRobot and Saifang Technology, the PinPong library has been fully adapted to the Saifang Technology RISC-V main control board, and the PinPong library can be used smoothly to directly read various sensors and operate actuators.


3. Mind+


image.png


image.png



Mind+ is a domestically produced youth programming software with independent intellectual property rights. It integrates various mainstream main control boards and hundreds of open source hardware, supports artificial intelligence (AI) and Internet of Things (IoT) functions, and can not only drag graphical building blocks for programming, but also use advanced programming languages ​​such as Python/C/C++, allowing everyone to easily experience the fun of creation. Mind+ not only supports graphical programming, but also supports Python programming. By simplifying a series of tasks such as environment configuration, we can achieve the state of being able to work as soon as we open it. At present, DFRobot has completed the adaptation work for Saifang Technology's JH7100 SoC, and can use a low-code approach to develop Saifang Technology's RISC-V main control board, further reducing the difficulty of developing Saifang Technology's VisionFive single-board computer.


4. HUSKYLENS (Husky Image Recognition) Vision Sensor


image.png


This line patrol car uses HUSKYLENS (Erha Image Recognition) as a visual sensor. As an easy-to-use artificial intelligence camera (visual sensor), HUSKYLENS has 6 built-in functions: face recognition, object tracking, object recognition, line patrol tracking, color recognition, label recognition, object classification, QR code recognition, and barcode recognition. AI training can be completed with just one button, getting rid of tedious training and complex visual algorithms, allowing developers to focus more on the conception and implementation of the project. HUSKYLENS has an onboard UART/I2C interface that can be connected to mainstream development boards such as Arduino, Raspberry Pi, LattePanda, Microbit, etc., to achieve seamless hardware docking and directly output recognition results to the controller. You can create very creative projects without having to toss complex algorithms. This car exhibit has achieved the adaptation of HUSKYLENS and the RISC-V main control development board of Saifang Technology.


image.png


HUSKYLENS is very easy to use. You can switch algorithms by toggling the function button; press the learning button and the HUSKYLENS can learn new things. It comes with a 2.0-inch IPS display. When adjusting parameters, there is no need for computer assistance. The debugging process and recognition results are directly displayed on the screen, and what you see is what you get. The built-in machine learning technology enables it to have the ability to recognize faces and objects. By long pressing the learning button, it can learn from different angles and ranges, and the more it learns, the more accurate it becomes.


2. Implementation steps


1. Function


a) Use PinPong to drive the car and use Erha to recognize images to patrol the line;


b) Erha View communicates with Saifang Technology JH7100 using I2C bus;


c) Use 2 IO ports to control the motor direction;


d) Use 2 PWM ports to control the motor speed;


e) Start up and run automatically.


2. Features


a) Automatic operation;


b) Scalable development;


3. Usage steps


a) After the motherboard is powered on and enters the system, /root/linefollower.py will be automatically executed immediately;


b) The learning of line patrol recognition needs to be controlled manually. Click the button in the upper right corner of HUSKYLENS to learn the black line to be recognized. When the white line with an arrow turns into a blue line, it means that the learning is completed;


c) After learning is completed, you can put it on the line patrol track and start patrolling the line.


This case shows the huge potential of the RISC-V development board of Saifang Technology in the field of robotics, and it can be well adapted to various sensors for IoT control. In the next stage, Saifang Technology will cooperate with DFRobot to jointly develop more IoT industrial control applications based on Saifang Technology's VisionFive single-board computer and the new generation of JH7110 chip, and promote the application of IoT.


Keywords:RISC-V Reference address:Saifang Technology teaches you how to use RISC-V development board to realize automatic line patrol driving of small cars

Previous article:CES 2022: Intel launches 12th Gen Intel Core processors for IoT
Next article:Mythic: In-memory computing has many advantages in cost, latency, etc. when processing AI

Recommended ReadingLatest update time:2024-11-16 13:28

Imagination announces RISC-V based CPU product family
Imagination Catapult CPUs use the RISC-V instruction set architecture (ISA) and are designed for heterogeneous computing solutions London, UK, December 6, 2021 - Imagination Technologies announces the Catapult series of RISC-V central processing unit (CPU) product families. These fully innovative CPU
[Embedded]
Imagination announces RISC-V based CPU product family
Deep Vision Selects SiFive’s RISC-V IP for Next-Generation Inference Accelerator
Recently, Deep Vision selected SiFive's Intelligence X280 processor IP to provide the market with greater flexibility and AI reasoning pre-processing. SiFive, the creator and leader of RISC-V computing, recently announced that Deep Vision will integrate SiFive RISC-V processor IP into its next-generatio
[Embedded]
Can RISC-V become a force in high-performance computing?
RISC-V architecture looks set to become more common in high-performance computing (HPC) and may even become the dominant architecture, according to some technology experts in the field. At the same time, the European High Performance Computing Joint Organization (EuroHPC JU) has just announced a project to develop R
[Embedded]
The 3rd Domestic Embedded Operating System Technology and Industry Development Forum is about to be held!
To welcome the new era of open source and innovative industrial operating systems, the 3rd Domestic Embedded Operating System Technology and Industry Development Forum and Embedded System Association Theme Discussion Meeting (the 27th in total) will be held in Hangzhou Forum Overview 2021 is a year in which Chin
[Industrial Control]
The 3rd Domestic Embedded Operating System Technology and Industry Development Forum is about to be held!
Intel and SiFive jointly demonstrate high-performance RISC-V Horse Creek development board
Last year, Intel announced the development of the Horse Creek platform, collaborating with SiFive to develop new high-performance RISC-V development systems as part of the company's Intel Foundry Services (IFS) and efforts to promote the adoption of RISC-V. These development boards are said to be a continuation of SiF
[Embedded]
Intel and SiFive jointly demonstrate high-performance RISC-V Horse Creek development board
Undergraduate students from the University of Science and Technology of China designed a 64-bit RISC-V processor chip in 9 months
On July 25, the University of Chinese Academy of Sciences (UCAS) announced the results of the first phase of its "One Chip for Life" program. For the first time in China, five undergraduate students from the class of 2016 took the lead in designing and taping out a 64-bit RISC-V processor SoC chip with tape-out as the
[Mobile phone portable]
OpenHW builds RISC-V-based MCU development kit for IoT
The OpenHW Group and its members have released what it says is one of the most comprehensive open source RISC-V development kits in the industry. It features an OpenHW Core-V MCU, Core-V Software Development Kit (SDK) with a full-featured Eclipse Integrated Development Environment (IDE), and an open PCB d
[Embedded]
RISC-V has entered high performance, and mass production is the key!
This is the best RISC-V China Summit. Although it has ended for a week, the stories it spread are still exciting, the topics it triggered have not faded, and the inspiration it brought is still worth savoring. In the post-Moore era, the chip manufacturing process has encountered bottlenecks. Under the "Tick-Tock" it
[Embedded]
RISC-V has entered high performance, and mass production is the key!
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号