ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Psychopy, Python and Arduino: python control of arduino output (Video 4)

Автор: garrea01

Загружено: 2019-06-06

Просмотров: 778

Описание: In this series we will journey into hardware control and combine our psychopy (python) programming with arduino microcontrollers. As usual we have an experiment that we want to build. In this case, we want to be able to turn on and off ultra-bright LED lights and change the illumination of our behavioural arena.

In this video we add serial control of our second led and then we use Arduino’s serial monitor utility to control the state of our LEDs. We then write a python program to start serial communication and accept user input (from the keyboard) to turn on and off the LED using ‘if’ control statements. We can control the duration of LED ON and OFF either using software (such as psychopy core.wait, or standard library time.sleep), or we can control LED timing using the microcontroller’s delay() function.

We next think about setting up a ‘state-machine’ where we think of our LED's as being in one of two states (on/off). We can toggle our led on and off by looking at the current state (i.e if the LED is ON turn it OFF and update the STATE). This is a simple look at setting and updating state variables.

In the next videos we will make an example program that involves Psychopy stim.draw() and win.flip() and learn to send serial commands relative to our stimuli.


Disclaimer.
This is not designed to be a complete python programming course, however it will be necessary to touch on different aspects of python programming as we learn to communicate using serial ports and serial interfaces.

Software used in these videos
Arduino IDE (for Windows/ OSX Linux): http://arduino.cc
Python (for windows) : http://python.org
Psychopy: http://psychopy.org
Atom Editor: http://atom.io

I hope these videos are helpful.

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Psychopy, Python and Arduino: python control of arduino output (Video 4)

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Psychopy, Python and Arduino: Are you serial? Setting and writing serial data (Video 3)

Psychopy, Python and Arduino: Are you serial? Setting and writing serial data (Video 3)

Neuroscience programming with psychopy/python: Line Bisection Task (Video 5) -  GUI interface

Neuroscience programming with psychopy/python: Line Bisection Task (Video 5) - GUI interface

Psychopy and Arduino

Psychopy and Arduino

The Internet, Reinvented.

The Internet, Reinvented.

Psychometric Curves

Psychometric Curves

7 лучших симуляторов Arduino на 2026 год!

7 лучших симуляторов Arduino на 2026 год!

Честно про аддитивные технологии.

Честно про аддитивные технологии.

Psychopy, Python and Arduino using Multiple LEDs (Video 2)

Psychopy, Python and Arduino using Multiple LEDs (Video 2)

Так из чего же состоят электроны? Самые последние данные

Так из чего же состоят электроны? Самые последние данные

Вот Почему Только ТРИ СТРАНЫ Контролируют Сборку Грузовых Кораблей по Всему Миру

Вот Почему Только ТРИ СТРАНЫ Контролируют Сборку Грузовых Кораблей по Всему Миру

Neuroscience programming with psychopy/python: Line Bisection Task (Video 7) - Final Program

Neuroscience programming with psychopy/python: Line Bisection Task (Video 7) - Final Program

Прозвонка электронной платы шаг за шагом | Подробная инструкция для мастера | Программатор ST-LINK

Прозвонка электронной платы шаг за шагом | Подробная инструкция для мастера | Программатор ST-LINK

САПР в машиностроении. Фильм 1, 1986

САПР в машиностроении. Фильм 1, 1986

Объявлена ракетная опасность. Заводы и электростанции под ударом. Почему ПВО не справляется?

Объявлена ракетная опасность. Заводы и электростанции под ударом. Почему ПВО не справляется?

How to Connect and Control an Arduino From Python!

How to Connect and Control an Arduino From Python!

Neuroscience programming with psychopy and python: Line Bisection Task (Video 1) -  creating stimuli

Neuroscience programming with psychopy and python: Line Bisection Task (Video 1) - creating stimuli

Building an LED SUPERNOVA!

Building an LED SUPERNOVA!

Hack Pack – Введение в Arduino

Hack Pack – Введение в Arduino

Градиентный спуск, как обучаются нейросети | Глава 2, Глубинное обучение

Градиентный спуск, как обучаются нейросети | Глава 2, Глубинное обучение

Введение в шейдеры: изучите основы!

Введение в шейдеры: изучите основы!

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]