Nos robots sont programmés en Ada. Pourquoi? Alexis écrivait en 2008 « c’est un langage beaucoup plus sûr ». C’est vrai – mais excessivement réducteur. Cette série d’articles va vous apporter les premiers pas d’Ada pratique sur STM32 – on ne va pas trop parler au début du typage fort et des restrictions du profile Ravenscar. Le …
Archives du mot-clé : stm32f407
Mai 11
Robotics 101 : controlling analog servos
Hi all, In this small tutorial you will learn how to control analog servos ! Since it is a simple application of the PWM we saw before it is more a lab work than a course, so feel free to try yourself without reading the code i’ll give at the end 😉 Most analog servos …
Sep 01
Robotics 101 : Multithreading with ChibiOS (1)
In embedded systems, one og the key features is multithreading : that is to say having multiple threads running. A thread is a processus running on your processor, it has its own memory and stack and can communicate with other threads through shared variables or function calls. The main interest in having multiple threads running …
Août 29
Robotics 101 : Makefile Survival guide
In the last tutorial we mentioned the other files present in a basic project, let’s take a closer look on one of them : the Makefile. This tutorial is going to be a short one, as only what you need to build your project will be explained. Nevertheless the Makefile is a really powerful tool …
Août 27
Robotics 101 : Transmitting data with ChibiOS Serial Driver
Now that you know how to configure the devices and what the serial driver does, let’s put it in practice. For this tutorial you will need: your stm32f407Discovery a usb-serial cable some wires and a breadboard
Août 26
Robotics 101 : Serial Driver, the basics
Communication Well, we are now able to do so cool stuff with GPIOs and PWM, but we still lack something really important : communication. As a matter of fact you cannot communicate at all right now, and that’s what we will work on with the serial driver. But first we will discover UART is.
Août 26
Robotics 101 : PWM (2)
Using a PWM You now know how to configure a PWM, great ! Now let’s see how to use it.
Août 26
Robotics 101 : PWM (1)
You said PWM ? A Pulse Width Modulation signal is a binary (that’s to say that there are only two different output voltages: HIGH or LOW) signal of a given fixed period. The output is HIGH for the first part of the period, then stays LOW untill the next period. The interesting point about this …
Août 26
Robotics 101 : Basic GPIOs
First Steps Now that we are fully able to use chibiOS programs on the board let’s understand them. Let’s start by the electronic ‘hello world’ which is: blinking a LED. To do so we are going to use General Purpose Input Output (GPIOs) First let’s get all the components ready :
Août 22
Robotics 101 : Quick start with chibiOS
Quick start : In this tutorial you will install everything you need to have a working program on your board, and learn how to use them. Openocd and GDB installation : In order to flash the chip, i.e put your program into the chip, you need to install a few softwares: openocd and gdb. First …