Magique Poudlard Index du Forum Magique Poudlard Index du Forum
FAQ Rechercher Membres Groupes
Profil Se connecter pour vérifier ses messages privés

Sending char type to be read by arduino

Poster un nouveau sujet Répondre au sujet Magique Poudlard Index du Forum -> Poudlard -> La Salle de Présentation
Sujet précédent :: Sujet suivant
Auteur Message
JoeClark
1ère année


Inscrit le: 29 Juil 2017
Messages: 86
Sexe: Masculin

MessagePosté le: Lun 30 Oct - 12:40 (2017) Sujet du message: Sending char type to be read by arduino Répondre en citant

Hello, 


I have been working in Processing (Java) up until now to create a program that presents a selection of images to a subject, waits for a mouse click (over the right image), then plays and audio file and sends a char type over usb to an arduino. This triggers one of a number of events involving some servo motors and other things which occur in sync with the audio file. There are a number of different events programmed on the arduino. It listens to the serial port and executes the code that is associated with the received character. The Processing program then waits the appropriate amount of time for the arduino to finish doing its thing (and the audio to stop), then it presents the next set of images. This repeats a number of times, till all trials are complete. 


My question is whether or not I can use Presentation to accomplish this goal, and specifically whether or not I can send a char type to the arduino, defined as such on the arduino site: "A data type that takes up 1 byte of memory that stores a character value... You can see the specific encoding in the ASCII chart". You're probably well aware of that, but I'm somewhat new to this kind of thing and I want to be clear and thorough since I'm on a very tight schedule to get this done. 




Please help...




I didn't find the right solution from the Internet.
References
https://www.neurobs.com/menu_support/menu_forums/view_thread?id=8885
marketing videos
Revenir en haut
Publicité






MessagePosté le: Lun 30 Oct - 12:40 (2017) Sujet du message: Publicité

PublicitéSupprimer les publicités ?
Revenir en haut
Montrer les messages depuis:
Poster un nouveau sujet Répondre au sujet Magique Poudlard Index du Forum -> Poudlard -> La Salle de Présentation Toutes les heures sont au format GMT + 2 Heures
Page 1 sur 1


Sauter vers:  

Index | créer un forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
Thème MagicCastle Blue par Mojy
Basé sur MagicCastle de Perfect RPG :: Powered by phpBB © 2001, 2017 phpBB Group
Traduction par : phpBB-fr.com