Тёмный

Voice and Touchscreen GUI Relay Activation - How To Use A PiRelay V2 HAT with Raspberry Pi 

Core Electronics
Подписаться 119 тыс.
Просмотров 15 тыс.
50% 1

The PiRelay V2 HAT is a solder-less solution to drive 4 Relays (30 Volts DC at 10 Amps) from a Raspberry Pi Single Board Computer. I'll even show you how to control the Relays through Spoken Custom Keywords and Utilise a Touchscreen GUI Control.
Full Article (with Terminal Commands) - core-electronics.com.au/guide...
Related Information
Tiny Screens for Raspberry Pi - Waveshare 3.5 Inch LCD - core-electronics.com.au/guide...
Set Up a Raspberry Pi as a Desktop Computer - core-electronics.com.au/guide...
How to use Raspberry Pi Imager - core-electronics.com.au/guide...
Use Your Phone to Control Your Raspberry Pi - core-electronics.com.au/tutor...
Crontab section in the Raspberry Pi Workshop Chapter 3 - core-electronics.com.au/cours...
All relays on the PiRelay V2 HAT are electro-mechanical relays and you can quickly identify them as the four large through hole black box components on the top of the PCB board. These are electro-mechanical as inside they have physically moving contacts on the output circuit which are controlled directly by a Raspberry Pi Board through I2C communication. This means you can stack these Hats for even more Relay control! These HATs are designed to keep your Raspberry Pi Safe. Also, keep in mind there is a 2 Relay HAT Version that fits cleanly onto a Raspberry Pi Zero and Raspberry Pi Zero 2.
Now for me, the customisable voice control is really cool. I can now properly recreate the "Open Sesame" moment from the Classic Arabian Nights story of Ali Baba and the Forty Thieves. The one missing puzzle piece I need is simply a mouth of a cave in which forty thieves have hidden their treasures. The magic side of things has been sorted 😊
If you have any questions about this content or want to share a project you're working on head over to our maker forum, we are full time makers and here to help - coreelec.io/forum
Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:
PiRelay V2 HAT (Solderless Solution) - core-electronics.com.au/catal...
Zero Relay 2-Channel 5V Relay Board for Pi Zero - core-electronics.com.au/catal...
Raspberry Pi 4 Model B (4GB) Ultimate Kit Bundle (AVALIABLE!) - core-electronics.com.au/raspb...
USB Microphone - core-electronics.com.au/catal...
Waveshare 3.5 LCD 480x320 - core-electronics.com.au/catal...
Raspberry Pi Single Board Computers and Gear: core-electronics.com.au/raspb...
0:00 Intro
0:21 HAT Overview
0:45 When You Need Relays
1:20 What You Need
1:54 Optional Extras
2:05 Hardware Assembly
5:00 Software Installation
6:56 Basic Control Script
7:45 Success 1!
8:03 Basic Control Script Explanation
9:06 Voice Control Script
10:49 Success 2!
11:37 Voice Control Script Explanation
12:30 Adding a Custom Keyword
14:00 Touch Screen GUI Script
11:55 Where to Now
12:35 Outro

Опубликовано:

 

30 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 33   
@stevegrimeszz
@stevegrimeszz Месяц назад
The touch screen is freaking nice for truck lighting
@Core-Electronics
@Core-Electronics Месяц назад
Every project can be made better with a touch screen, and what a great application for it as well!
@stevegrimeszz
@stevegrimeszz Месяц назад
@@Core-Electronics can we add more relays and a gui that matches???? I have no idea how to do that.
@thesystemsucks
@thesystemsucks Год назад
great stuff.. great video. clearly delivered content and concise. have been ordering from you guys for years but didn't know you had youtube 👍
@Core-Electronics
@Core-Electronics Год назад
Thank you for your kind words VIP 😊
@SpikeSwinedell
@SpikeSwinedell 6 месяцев назад
I wish I had found this channel a year ago.. Thanx sir..
@jeremyulmer4724
@jeremyulmer4724 Год назад
Thanks for this tutorial! It was exactly what I needed to get started.
@Core-Electronics
@Core-Electronics Год назад
Great to hear!
@JokerInk-CustomBuilds
@JokerInk-CustomBuilds 2 месяца назад
Great video and info. I am a noob and need to control 8 relays with 8 physical push buttons and i want a GUI for it also... I think I have figured out the code for the relays and buttons.... with this GUI script I think I can adapt it to fit my needs... (I am not using raspberry relays since I already have cheap relays...) Edit: I ended up getting advised to use chatgpt. it took me about 40 minutes to have it write the code for me and even adapt the GUI code from core electronics to fit my needs. Litterally as easy as asking someone else to do it for me.... First time I ever used chatgpt for anything! LOLOL p.s. As an electrician the double stack raspberry has one HUGE flaw; When the screen is mounted you cannot acces the screw terminals for the relays... So if you need to swich a wire to another terminal you will have to disassemble the screen first...
@12vshady
@12vshady Год назад
What a good video. I might actually try it
@Core-Electronics
@Core-Electronics Год назад
Get amongst it! 😊
@notation254
@notation254 Год назад
neat... I want a relay switch hat now.
@yakubumshelia1668
@yakubumshelia1668 6 месяцев назад
Great video
@brandonsummey2418
@brandonsummey2418 Год назад
great job
@sureshkumarkp8802
@sureshkumarkp8802 Год назад
I'm subscribed and all notifications are turned ON. Yet I have not got the notification for your last video 3 days ago in my subscription posts. I had noticed the videos when I went to your channel home page. Please check if there is any issue there. May be it is a glitch or may be I'm the only one having the issue. I don't know. Anyways putting it out there so that you may have a look at the issue.
@a4Ricky
@a4Ricky Год назад
great ,thank you
@Core-Electronics
@Core-Electronics Год назад
😊
@christophersmith1658
@christophersmith1658 9 месяцев назад
I'm new to the pi but I'm building a gaming table and I need the pi to run 2 actuators simultaneously and have 3 different preset heights and manual control and on the same setup run a bunch of leds with a bunch of presets all from that touchscreen panel. Any advice on hardware/software ill need?
@imoldovan
@imoldovan Год назад
I can see expanding this to send mqtt messages for home assistant to turn on various devices.
@Core-Electronics
@Core-Electronics Год назад
Love it 😊
@jorisdenengenieur1239
@jorisdenengenieur1239 Год назад
Great video! Is it possible to modify your code: button1 pressed and relay 1 retracted? Release button1 and the relay stops working? Where can I find this solution or can you explain us how to create the necessary code? Keep up the good work. Greetings from Belgium
@Core-Electronics
@Core-Electronics Год назад
Absolutely mate, all this open source scripts means you can alter them to do anything that you desire 😊! Come hit us up at the forum and we'll best be able to guide you in the right direction - forum.core-electronics.com.au/latest Also dive into our Python Workshop, if you knock that out of the park you will have all the skills needed to solve your project - core-electronics.com.au/courses/python-workshop/
@user-pj9th1jt7c
@user-pj9th1jt7c 9 месяцев назад
Is it possible to stack a motoron hat on top of the PiRelay hat or will the GPIO usage conflict?
@jonathanboot
@jonathanboot 9 месяцев назад
Hi Tim , is it possible to given a example for POLOLU controller (Pirelay) _GUI for 2 DC motors buttons for on /off en speed control , please thanks luc Belgium
@ezequielvalentin-crespo8779
@ezequielvalentin-crespo8779 11 месяцев назад
Can the UI be altered? Changing the button Style and add a wallpaper?
@robertraman6307
@robertraman6307 Год назад
Would the relay work with a 220 V 2000 W heater fan running in 15 min intervals checking if the temp ha reached a certain value and then stops and restarts when the temp is dropped a few degrees?
@Core-Electronics
@Core-Electronics Год назад
Heyya mate, these relays top out at 30 Volts DC at 10 Amps. If you want to control some seriously powerful current and voltages take a look at the SparkFun Qwiic Quad Solid State Relay Kit - core-electronics.com.au/catalog/product/view/sku/KIT-16833 That relay kit is capable of shuffling around 40 Amps at 28-380 Volts AC!
@yakubumshelia1668
@yakubumshelia1668 6 месяцев назад
This screen seems to consume a lot of gpio pins. It could be a problem for my next project. Is there any recommendations
@jhulindawati7489
@jhulindawati7489 Год назад
hello, I can't speak English. I'm using google translate. I'd like to ask. I get the message "RPi.GPIO as GPIO no module" what is the solution? I have installed but it didn't work. Please help me 🙏🙏🙏
@Core-Electronics
@Core-Electronics Год назад
All good mate, type this into your terminal | sudo apt-get install python3-dev python3-rpi.gpio | . Then type | sudo thonny | into your terminal and open the script in this special Thonny IDE Version that has administrator powers. It should all work after that 😊
@darkplayer4371
@darkplayer4371 Год назад
please make a video on a product like if we want to make a box in which we place the product to sale the user select the 1 product by a screen or buttons then he/she enter money in the specific place of that product or machine so then he/she got the product out of the cabin or box I hope you understand what I am trying to deliver
@Core-Electronics
@Core-Electronics Год назад
In that case the Vending Machine DIY Project you need to see is this - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-BHQBsswUeT0.html
@stevegrimeszz
@stevegrimeszz Месяц назад
crontab -e DOES NOT WORK WITH GUI.
Далее
Controlling Large Stepper Motor With Raspberry Pi
38:39
Convert Your Raspberry Pi into a Mini PC
5:17
Просмотров 78 тыс.
🎙️ПЕСНИ ВЖИВУЮ от КВАШЕНОЙ💖
3:23:13
ШАР СКВОЗЬ БУТЫЛКУ (СКЕРЕТ)
00:46
How To Use A Relay With Raspberry Pi Pico
11:59
Просмотров 23 тыс.
DIY Raspberry Pi Racecar Dashboard: The Ultimate Guide
15:11
The Petabyte Pi Project
22:27
Просмотров 2,2 млн
Raspberry Pi 4 RAM Upgrade - Tutorial🤫
7:35
Просмотров 369 тыс.
The new Raspberry Pi Pico W is just $6
7:56
Просмотров 431 тыс.
🎙️ПЕСНИ ВЖИВУЮ от КВАШЕНОЙ💖
3:23:13