Bonjour,
Je vous propose une réalisation personnelle d’une Mire N/B personnalisable en injection direct ou via un modulateur composite vers RF pour nos vieux téléviseurs.
Câblage de l’Arduino :
Le pont diviseur peut être changé en fonction de la tension crête crête d’attaque choisie.
Configuration de l’Arduino :
Télécharger la librairie TV OUT de l’Arduino :
https://downloads.arduino.cc/libraries/github.com/Avamander/TVout-1.0.1.zip
Programme (1) :
#include <TVout.h>
#include <A vous de mette le chemin vers \fontALL.h>
#include <A vous de mette le chemin vers\car.h>
const int inputPin = 0;
const int scalePin = 2;
const int samplePin = 3;
TVout TV;
void setup() {
TV.begin(_PAL,120,96);
TV.select_font(font4x6);
TV.clear_screen();
TV.print(10,10,« DOC_TSF »);
TV.delay(5000);
TV.clear_screen();
TV.bitmap(10,10,car);
TV.delay(40000);
}
void loop() {
// A vous de mettre votre programme
}
Sous - Programme (1) :
Nommez le fichier car.cpp
#include « car.h »
PROGMEM const unsigned char car[ ] = {
120,96,
0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff
,0x00,0x00,0x00,0x02,0x00,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x18,0x30,0x41,0x82,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x18,0x30,0x41,0x82,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x18,0x30,0x41,0x82,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x18,0x30,0x41,0x82,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x18,0x30,0x41,0x82,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x18,0x30,0x41,0x82,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x00,0x02,0x00,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x18,0x30,0x41,0x82,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x18,0x30,0x41,0x82,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x18,0x30,0x41,0x82,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x18,0x30,0x41,0x82,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x18,0x30,0x41,0x82,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x18,0x30,0x41,0x82,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x18,0x30,0x41,0x82,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x18,0x30,0x41,0x82,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x00,0x02,0x00,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
,0x00,0x00,0x40,0x02,0x04,0x10,0x20,0x81,0x02,0x08,0x10,0x40,0x81,0x04,0x10
};
// Si vous souhaitez mettre l’image de la mire a affiché de votre choix en Hexa. personnellement j’utilise
// Convert picture to C code array et inserer le code dans car.cpp.
Sous-programme 2:
Nommez le car.h
#include <avr/pgmspace.h>
#ifndef CAR_H
#define CAR_H
extern const unsigned char car[ ];
#endif
Enfin pour le sous programme 3 (font4x6.cpp) vous sera peux être demandé par IDE a vous de mettre le chemin du fichier de la librairie TVOUT. EX: C:\Users\Utilisateur\Documents\Arduino\libraries\TVout\TVoutfonts\font4x6.cpp.
Si vous souhaitez faire de l’affichage en 819 lignes je serai ravi de vous répondre pour faire la modif.
Pour plus d’information je serai ravi de vous répondre.