can someone help me. I have a USB RFID tagger connected to Raspberry Pi. When I tap an ID to tagger using notepad or terminal in raspberry pi, it will read correctly (0341956777). But when i tap it using my code it will read like this )#$!(%^&&& . Do I need to import any library here in my code or something to add? By the way my reader is 13.56Mhz, it has two checkbox in the back. ID and IC. IC checkbox have a check on it.
My code in the image
This is the second part of the code
Related
My question is similar to this one but I have a question I would like to ask and I can't comment below, so I would like to extend the question here.
I have a Raspberry Pico with micropython installed and I have a PN532 to read NFC tags via i2c. I have tried various libraries as well as Adafruit's Lib which is based on CircuitPython. I chose to stay on micropython for other reasons so this was not an option.
To go further on my quest I followed the link to the YouTube video: youtube.com/watch?v=NuVhXdyeZvQ&t=1171s and the Link to the GitHub repo: github.com/somervda/nfc-tester/tree/… . Now this reads the tags successfully. However the interrupts don't seem to work as they should. There is a keypad present and some irq's set that don't react to pressing, unless the block of code for rfid reads a card.
Is this how the library is supposed to work? Is it polling based or interrupt driven? Why the interrupts don't activate?
I am using a STM32F030F4P6 MCU and a LCD 2004 with PCF8574T I2C display driver. I have tried the library from this tutorial: https://controllerstech.com/interface-lcd-16x2-with-stm32-without-i2c/. I have found a datasheet for the PCF8574T device, but there are no commands specified in there. I am quite new in the field, but I already communicated with other devices over I2C and SPI and got them to work. Can somebody tell me what I am doing wrong, or at least show me where to get a datasheet with commands for the device? I am sorry in advance if this is a noob question.
As already mentioned, PCF8574T - is an i2c expander. So you need to write a driver which manipulates data pins on PCF8574T in way described in tutorial you found.
Check the arduino code for this type of LCD. It may save your time/ https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library
If you have an Arduino board, you can test your LCD according this tutorial https://create.arduino.cc/projecthub/Arnov_Sharma_makes/lcd-i2c-tutorial-664e5a
Nice to know that your device still alive before debug the code.
I have plugged in a RFID scanner into the usb port of the raspberry pi. I noticed it appears in the /dev/input/by-id folder as usb-RFIDeas_USB_Keyboard-event-kbd.
I found code on GitHub that seems to suggest that I can read from this device, but I am pretty new to understanding all of this so I keep getting confused about how I can run the code to read information from my RFID scanner.
I'm a bit confused. I explain to you my project, I would like to make a "reader" by using beacon technology (ibeacon for apple, eddystone for android) using a raspberry pi 3. The smatphone application sends an acknowledgment code when passing the person. The raspberry marks and updates an online database. I wanted to ask, first of all can this be done? My problem is to realize the beacon transmission, then for the app and the database I have no problems. I tried using bluez but I can not detect the phone. Is there any online tutorial that could help me? Thanks
If you are looking to use the phone to emit a beacon transmission and then use the Raspberry Pi 3 to detect the beacon, then yes, this is possible. I put together a tutorial on how to use the Android Things to detect beacons on the Raspberry Pi 3.
The problem with using BlueZ for beacon detection is that it is simply not stable on the Raspberry Pi, and will freeze up and stop detecting requiring a reboot.
In the last weeks I experimented with my Raspberry Pi B and with the PiCamera. I had the idea to establish a connection between the RasPi and an Android device or (if it is easier) to a windows notebook without an access point in between, just like the GoPro camera and its App. I would like to have a live stream from the PiCamera to the other device and the possibility to start/stop recording a video or simply take a picture.
The app itself is not my problem, I wrote some simple apps before. But I didn't yet find a tutorial or description how to set up the communication and the stream.
I bought a WiFi dongle (Fritz!WLAN Stick N - by AVM) that supports WiFi direct and my phone (Samsung Galaxy S5 mini) does as well.
My first question is how to set up this stick on Raspbian - yet it is not recognises as a wifi dongle, and the second is how to achieve what I descriebed above.
Could anyone please describe what I can do?
Thanks in advance!
PS: I prefer a description for bash because I use SSH