Hello,
I was looking to use a Teensy 3.2 MCU to communicate between an E paper display and RFID module to provide an interactive scale payment system for my project. I do intend to use I2C protocols to communicate with an ESP32 to retrieve and send different variables but that is not the root of my issue at the moment.
I have set up the E paper display to only switch to my sale screen when the RFID module receives a card ID. I was also able to get these devices to work individually, I do however think that there may be some compatibility issues in the hardware when putting them all together. My hardware connections are as follows:
-RFID Module
SDA -> 18
SCK -> 13
MOSI -> 11
MISO -> 12
RST -> 6
3.3V -> 3.3V
GND -> GND
-E-Paper Display
BUSY -> 7
RST -> 9
DC -> 8
CS -> 10
CLK -> 13
DIN -> 11
GND -> GND
VCC -> 3.3V
My code does consist of classes so I went ahead and attached it at the bottom
When checking the serial monitor while running the code this is what I receive:
If i remove the if condition in the main code here:Code:Dispenser Initialization - Started Starting SPI Starting SPI, Complete Configuring Push Button Configuring LED Configuring Buzzer Starting RFID Starting RFID - Complete Configuring Motor Shield Configuring Load Cell Configuring Display Dispenser Initialization - Complete _PowerOn : 35058 _Update_Full : 16779111 _PowerOff : 20038 displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate _PowerOn : 35061 displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate displayProductInfo L1: Fictional Product displayProductInfo L2: $0.01 displayProductInfo L3: / 100 g displayProductInfo L4: Tap card to activate _Update_Part : 16779142my device remains in this loop so having the RFID working as a key and be able to read the card ID is essential to the entirety of the project and at the moment it is doing neither. Running any other RFID code, separate from E paper display, to retrieve card IDs work very well with the current setup so I am not sure if the EPD is interrupting the communication with the RFID module.Code:if (dp.isCardPresent()) {...}
Any insight on this would be very helpful and greatly appreciated!
Thank you