Raspberry Pi 3 - RFID Video Player

  Рет қаралды 12,616

Billy Manashi

Billy Manashi

5 жыл бұрын

This is a video player that scans RFID cards to play videos.
Kids love this video player. This is a great project for folks that are new to programming.
You will need the following:
Raspberry Pi 3
RFID RC522 Kit
RFID 13.56 MHz Cards
The code for this project can be found here:
github.com/bma-diy/rpi-rfid-v...
#raspberrypi3 #diy #raspberrypiprojects

Пікірлер: 71
@brokenmonitorgaming3206
@brokenmonitorgaming3206 7 ай бұрын
Don't know if you still read these but this is going to be a perfect for my grand kids i think they will get a kick out of selecting a card to watch a show
@tastybrains
@tastybrains 4 жыл бұрын
this is great. i was just googling this morning for the inspiration to build something like this and... here it is! thanks
@michelesimonetti5231
@michelesimonetti5231 4 жыл бұрын
wow man, you are awesome, thank you so much, this is an incredible idea
@janinep7206
@janinep7206 27 күн бұрын
That's so cool!
@Freacly
@Freacly 2 жыл бұрын
This is awesome!
@SkinnyVinnie514
@SkinnyVinnie514 2 жыл бұрын
Man, thats awesome, what a cool idea! I now want to build the same, thanks for sharing😊 Any reason why this shouldn’t run on a Raspberry Pi Zero 2 W?
@JBAntiFan
@JBAntiFan 5 жыл бұрын
thank you so much for sharing this
@carlbracken6248
@carlbracken6248 5 жыл бұрын
I am new to the R Pi community and your player project is a perfect fit for a on profit public facing astronomy learning center that I support I am running into the well known issue of reading the Mifare cards I am using the RC522 reader on R Pi 3 model B running Raspbian 9.6 stretch I can read card when running read.py but I get some errors that I think is related to the spi_bcm2835 known issue. How did you solve that problem? Your concept is perfect for a public facing kiosk application in my opinion. Thanks
@daviddelgado5954
@daviddelgado5954 5 жыл бұрын
WOW! That's what I wanted to do for months! How did you accomplish that! Is there any tutorial you followed for this excellent piece or art!??
@bmadiy
@bmadiy 5 жыл бұрын
the code can be found in the github link in the description
@jamescole5018
@jamescole5018 5 жыл бұрын
never mind got it my friend
@asphixmx
@asphixmx 3 жыл бұрын
I would like to make this but with music albums... you said it was very easy. I know a little bit of python... wish me luck. Any advise? Thanks.
@jamescole5018
@jamescole5018 4 жыл бұрын
Ram Yadav how you do it i lost sence the updates
@relaxationandmeditation4249
@relaxationandmeditation4249 4 жыл бұрын
Hi... Bma... I followed your tutorial and github file to execute program and I did it successfully.... Thank you for your benevolent contribution. I want to stop video if I pick up and again put on rfid. Issue: when I put any card it starts playing video but if I put that for more than 20 sec or more.. And put another tag then it doesn't stop previous video it just finishes that video then play the next one. Issue2: I cannot stop video or get out from om player during execution... Please help me... Thank you
@hsnyalcingmail
@hsnyalcingmail 4 жыл бұрын
Hello, i like your project and it works but i couldn't find any info about select video screen. What did you use for it. It is like wallpaper but how.
@bmadiy
@bmadiy 2 жыл бұрын
It is a wallpaper with the taskbar hidden. But you can also have a default video playing and I should have an example of that in my script
@daviddelgado5954
@daviddelgado5954 5 жыл бұрын
nice thank you so much, I just have one question, in what folder do each file go on the raspberry?
@bmadiy
@bmadiy 5 жыл бұрын
you can put them in any directory, just make sure they are all in the same directory. Then go to the /etc/rc.local file and add the command: python /your_directory/bplay.py &
@daviddelgado5954
@daviddelgado5954 5 жыл бұрын
@@bmadiy thank you so much!
@ThatboyWrong
@ThatboyWrong 5 жыл бұрын
Hello, so I've got a question. I've made a folder with an .avi file, and have written the card to have the location of the .avi file as the data (assuming that is what I am supposed to do). I even have the directory line set to the proper directory (where the video file is). However, when I run the bplay.py script, I keep getting the "No videos playing, so play video" message. Is there something i'm doing wrong? is there more within the bplay.py script that I need to edit? some help would be appreciated, as i've watched this video a few times to see if there is something I've missed.
@bmadiy
@bmadiy 5 жыл бұрын
ThatBoy AintRight ThatBoy AintRight did you program the directory path along w the file name? It needs an absolute path to the file name. Also. Can you test that the omxplayer can play your video? Type in “omxplayer /path/file.avi”
@ThatboyWrong
@ThatboyWrong 5 жыл бұрын
@@bmadiy So first, thank you for getting back to me so quickly. Second, Turns out I'm an idiot (I ran a number of files through omxplayer and only got one to play (ill have to dig into the codec information to see why) but anyway, I went with that one. After double checking the directory and writing the card with the file that I've confirmed to work, your script worked like a charm. TL;DR - works great, I just have files that don't want to cooperate. Thank you DOUBLE UPDATE: It's because my files were in 4k (4096x2160) however omxplayer seems to be okay with 1920x1080. All is well I clearly just need to sleep. Thank you again.
@deanizod
@deanizod 4 жыл бұрын
Excellent video and thank you for all the script, this was just the project I was looking for. Will this still work on a Raspberry pi 4 or does it have to be pi 3?
@kunalbelamkar
@kunalbelamkar 2 жыл бұрын
Ye same question
@qiamudien
@qiamudien 2 жыл бұрын
I tried todays with no success. There is a SPI library missing and i can´t find how to import
@stefanopj
@stefanopj 2 жыл бұрын
@@qiamudien I can confirm it works with Pi4. You are likely having an issue with SPI-Py installation, you need to do a rollback. You have git clone the SPI-Py repo (lthiery/SPI-Py.git), then go to the dir (cd SPI-Py) and type "git checkout 8cce26b9ee6e69eb041e9d5665944b88688fca68", then "sudo python setup.py install"
@StathisMoustakis
@StathisMoustakis 5 жыл бұрын
Hi, very nice work here. i tried it and works just fine. Just 2 questions, how do you program the "select a video" screen, and second is it possible when i remove the card to stop the video and drive me to the "select video" screen?
@bmadiy
@bmadiy 5 жыл бұрын
Στάθης Μουστάκης there are two things you can do: you can create an mp4 file and have it play automatically when the program starts. What I did was just create a wallpaper that says select a video. If you want to have it go back to the select a video screen, you can modify the python program to quit the video if it doesn’t detect a card.
@StathisMoustakis
@StathisMoustakis 5 жыл бұрын
@@bmadiy thanks alot. I'll try to do it. Loop a video when no card is present and play selected video according to RFID when card is detected.
@abbad810
@abbad810 3 жыл бұрын
Στάθης Μουστάκης, Hi i also want a video screen were you able to do it ?
@OmarAcosta09
@OmarAcosta09 5 жыл бұрын
Are those stickers on the rfid cards or how did you print them?
@bmadiy
@bmadiy 5 жыл бұрын
I ordered 3x2 labels from Amazon. This one I'm linking here is great quality and at a low prices. Dont buy the avery ones as they scratch off easily. www.amazon.com/gp/product/B07D8F17QX/ref=oh_aui_search_detailpage?ie=UTF8&psc=1
@franciscomanuelleal8280
@franciscomanuelleal8280 5 жыл бұрын
Wonderful work, congratulations. I followed the instructions of the link to setting up the RFID kit and it works properly, but when I copy your files I get the following error: File "bplay.py", line 3, in importmSimpleMFRC522 File "/home/pi/rpi-rfid-video/SimpleMFRC522.py", line 3, in import MFRC522 File "/home/pi/rpi-rfid-video/MFRC522.py", line 7, in import spi ImportError: No module named 'spi' What can I be doing wrong or which step I'm skipping? Thanks for any help or advice?
@deeperklabs
@deeperklabs 5 жыл бұрын
connect IRQ pin of rc522 to RPI pin 18 or GPIO 24
@franciscomanuelleal8280
@franciscomanuelleal8280 4 жыл бұрын
Thanks, I will tray it.
@daviddelgado5954
@daviddelgado5954 5 жыл бұрын
Im about to try. Had a car issue that got me stranded close to home.
@someonecooltech
@someonecooltech 3 жыл бұрын
Great project! can I use raspberry zero instead?
@bmadiy
@bmadiy 2 жыл бұрын
Raspberry pi zero may not be powerful enough to play videos. Let me know if you try it out
@relaxationandmeditation4249
@relaxationandmeditation4249 4 жыл бұрын
Video not pausing just like you and not even terminating when I press any key or ctrl+c or q
@rosacunninghamfernandez8129
@rosacunninghamfernandez8129 5 жыл бұрын
Will this work with audio files instead of video files aswell?
@bmadiy
@bmadiy 4 жыл бұрын
Rosa Cunningham Fernández Yes it will
@jamescole5018
@jamescole5018 5 жыл бұрын
Hay bma is there a way to add a button to stop and run bplay
@bmadiy
@bmadiy 4 жыл бұрын
james cole yes there is. I updated the github repository with a new library that allows the use of buttons
@jamescole5018
@jamescole5018 4 жыл бұрын
Bma can i just get a copy of your image the new rasbin with paython3 is mess me up
@daviddelgado5954
@daviddelgado5954 5 жыл бұрын
how do you execute the .py file so that it reads?
@bmadiy
@bmadiy 5 жыл бұрын
David Delgado did you try “python read.py”?
@SpiritOfTrboule
@SpiritOfTrboule 5 жыл бұрын
What kind of RFID tags did you use? I keep getting AUTH ERROR(status2reg & 0x08) != 0 error with your and other RFID RC522 python scripts. It seems it reads the UID correctly, but not the data. Did you come across such problems and how did you solve them?
@bmadiy
@bmadiy 5 жыл бұрын
This is the exact RFID Card pack I ordered from Amazon: www.amazon.com/gp/product/B0747L91F7/ref=oh_aui_search_detailpage?ie=UTF8&psc=1
@bmadiy
@bmadiy 5 жыл бұрын
At 01:23 you can see that I get that error as well. It usually will just rescan correctly. Are you using the write.py and read.py scripts to test basic read / write functionality?
@SpiritOfTrboule
@SpiritOfTrboule 5 жыл бұрын
@@bmadiy Thank you for swift reply. Luckily I have one same card (Mifare Classic 1k) and it seems to work with the script (I will need to tinker a bit to get everything running, but so far so good). On the other hand, none of the other tags, labels, ... don't seem to work so far. Will need to explore further. Thank you!
@SpiritOfTrboule
@SpiritOfTrboule 5 жыл бұрын
@@bmadiy yes, I am using these scripts. But rescaning doesn't help, I get 100% fail rate with other tags I have. By the way, shouldn't the script play menu again if video ends and there is no new card?
@abbad810
@abbad810 3 жыл бұрын
How to get the default screen as in video ? Please add code of that as well. Thanks
@nachiketathakur697
@nachiketathakur697 3 жыл бұрын
hey were you able to do it ??
@abbad810
@abbad810 3 жыл бұрын
@@nachiketathakur697 No
@bmadiy
@bmadiy 2 жыл бұрын
Hi, the default screen is the raspberry pi wallpaper w the taskbar hidden
@JBAntiFan
@JBAntiFan 5 жыл бұрын
How do you access your Pi from the laptop?
@bmadiy
@bmadiy 5 жыл бұрын
Type in sudo raspi-config in the terminal and enable SSH. connect your pi to the internet and find out the IP address it is given. Google "set up SSH on raspberry pi" for more info
@JBAntiFan
@JBAntiFan 5 жыл бұрын
@@bmadiy Thanks, I managed to get everything working, now just one more thing I really need your help. I want to pause the video the minute I lift the RFID tag off the reader, and resume it when it is placed back in, where should I modify the code?
@jamescole5018
@jamescole5018 5 жыл бұрын
dude i need a tut on this asap
@bmadiy
@bmadiy 5 жыл бұрын
Hi James, you can see the python script in the description
@jamescole5018
@jamescole5018 5 жыл бұрын
@@bmadiy yah I seen it still having trouble
@jamescole5018
@jamescole5018 5 жыл бұрын
I have my pi set up and my rfid working I just need help with loading the script and writing the cards
@daviddelgado5954
@daviddelgado5954 5 жыл бұрын
not working, I wish there were more basic instructions :(
@bmadiy
@bmadiy 5 жыл бұрын
David Delgado how much experience with Python and Linux do you have? I was new not too long ago but projects like these helped me build some skill. I recommend finding some free python courses to go thru online to get some understanding of the fundamentals. Or you can ask a friend that has some python experience to help you with this project.
@daviddelgado5954
@daviddelgado5954 5 жыл бұрын
@@bmadiy i have some linux experience but none with python. I will look for that an see if it helps thx.
@jamescole5018
@jamescole5018 4 жыл бұрын
I can pay for some help
My NEW Raspberry Pi Music Streamer
8:13
Michael Andrew
Рет қаралды 71 М.
Raspberry Pi Projects
11:57
TJ FREE
Рет қаралды 1,7 МЛН
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 103 МЛН
Nutella bro sis family Challenge 😋
00:31
Mr. Clabik
Рет қаралды 14 МЛН
Cat Corn?! 🙀 #cat #cute #catlover
00:54
Stocat
Рет қаралды 15 МЛН
What is the Difference between RFID and NFC?
6:32
Blue Bite
Рет қаралды 222 М.
The Truth About SIM Card Cloning
13:04
Janus Cycle
Рет қаралды 1,1 МЛН
Automating My Morning Routine - Modern-Day Record Player
8:58
Raspberry Pi RFID movie player
8:17
Ed Robinson
Рет қаралды 348
DIY: Cyberdeck multi-function backup computer
29:31
DTeK
Рет қаралды 3,7 МЛН
Revolutionize Your Spotify Experience for less than $15!
3:49
Make it for less
Рет қаралды 570 М.
RFID Card Video Player Demo
0:46
Billy Manashi
Рет қаралды 526
HOW TO RFID Jukebox with raspberry pi, arduino, and Spotify!
9:49
Joseph Mulhern
Рет қаралды 9 М.
Control ANY COMPUTER with these Pi KVMs!
17:46
Jeff Geerling
Рет қаралды 803 М.
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 103 МЛН