Archives du mot-clé : stm32f407

Sep 14

Ada et Robots #1: démarrage

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 …

Lire la Suite »

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 …

Lire la Suite »

Mar 04

Robotics 101 : Using a .gdbinit

In this course you will learn some of gdb uses : creating your own functions/macros and using it to check if your code does what it is supposed to do. Gdb is a very powerful tool, well mastered it can make a huge difference between a regular programmer and a good one. Using the .gdbinit …

Lire la Suite »

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 …

Lire la Suite »

Août 29

Robotics 101 : Makefile Survival guide

makefile1

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 …

Lire la Suite »

Août 27

Robotics 101 : Transmitting data with ChibiOS Serial Driver

mcuconf (1)

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

Lire la Suite »

Août 26

Robotics 101 : Serial Driver, the basics

Untitled drawing (1)

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.

Lire la Suite »

Août 26

Robotics 101 : PWM (2)

alternate functions

Using a PWM You now know how to configure a PWM, great ! Now let’s see how to use it.

Lire la Suite »

Août 26

Robotics 101 : PWM (1)

pwmSignal

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 …

Lire la Suite »

Août 26

Robotics 101 : Basic GPIOs

IMG_20130715_220223

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 :

Lire la Suite »

Articles plus anciens «