Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
howto:thymio:thymio_barcode_reader [2023/06/27 15:55] – [How to use the code] marie | howto:thymio:thymio_barcode_reader [2023/06/27 16:12] (Version actuelle) – [Specifications] marie | ||
---|---|---|---|
Ligne 8: | Ligne 8: | ||
* wav mono sound files under 8000hz, without metadata, encoded " | * wav mono sound files under 8000hz, without metadata, encoded " | ||
* a printer, or a sheet of paper and a black pen (not every ink works. if your ink reflects too much ir light, Thymio won't be able to recognize it. to avoid this, prefer carbon black ink.) | * a printer, or a sheet of paper and a black pen (not every ink works. if your ink reflects too much ir light, Thymio won't be able to recognize it. to avoid this, prefer carbon black ink.) | ||
- | Name each of your audio files " | + | Name each of your audio files " |
Next, you need a sheet of paper with some black lines drawn on. Note that each line and each space between the lines must be minimum 0,5mm and maximum 9cm wide, and minimum 8cm long. Different notes are registered every 0,5mm, and it may read a total of 20 notes. This may be edited in the code, but keep the motor speeds low. If Thymio moves any faster, it can't keep up as well, and gives false values. | Next, you need a sheet of paper with some black lines drawn on. Note that each line and each space between the lines must be minimum 0,5mm and maximum 9cm wide, and minimum 8cm long. Different notes are registered every 0,5mm, and it may read a total of 20 notes. This may be edited in the code, but keep the motor speeds low. If Thymio moves any faster, it can't keep up as well, and gives false values. | ||
Ligne 16: | Ligne 16: | ||
#this code reads barcodes based on bar width | #this code reads barcodes based on bar width | ||
- | #speed = 0,5 cm/s ; max 40 notes ; different note every 0,5 cm ; 9 different notes ; min width 0,5 cm ; max width 9cm ; min length 5 cm but 8 recommended ; ink must absorb ir light (carbon black) | + | #speed = 0,5 cm/s ; max 20 notes ; different note every 0,5 cm ; 9 different notes ; min width 0,5 cm ; max width 9cm ; min length 5 cm but 8 recommended ; ink must absorb ir light (carbon black) |
#prioritize the bars to be too big rather than too small (for example, if a bar should be 3cm; 3,4cm > 2,9cm). in fact, do make them a millimeter or two wider | #prioritize the bars to be too big rather than too small (for example, if a bar should be 3cm; 3,4cm > 2,9cm). in fact, do make them a millimeter or two wider | ||
</ | </ | ||
- | These are just specifications, | + | These are just specifications, |
==== Setup ==== | ==== Setup ==== | ||
< | < |