Electronics > Projects, Designs, and Technical Stuff
Help can not make MCP2515 to work
Jawad:
I followed that tutorial which the link i provided it worked fine on a breadboard because it uses 3 modules arduino pro mini mcp2515 module and LM2596ADJ module
After it worked on the breadboard i wanted to make a small pcb without any wires and breadboard
So i didn't change anything just copied exactly the three modules go make a pcb.
I didn't follow any schematics since i didn't trust the online schematics since i'm a beginner i will not know which one is wrong
i have the 3 modules in hand so i followed all the lines with multimeter in continuity mode
For the TX and RX they are always high no data (tested it using a logic analyzer since i still didn't receive the scope yet)
JagV12:
Sorry to insist but what is the voltage at Vcc (Pin 2 on AVR_SPI connector) ? It should be 5V.
Jawad:
Yes the voltage is 5v on vcc pins coming out from the regulator to the atmega and mcp2515 and also the tranceiver chip.all of them are running on 5v.
When uploading another code to it like a blinking led it works fine so atmega328p is working fine but it is not communicating with MCP2515 since there is no data mouvement on rx or tx and canL and canH are 2.5v
JagV12:
OK, next thing is to make sure X2 is oscillating properly without disturbing it (search the internet on how to do that) and then to test the SPI part of the MCP2515...
Jawad:
Thanks guys i found out what it the problem and solved it it was a wrong pin number in the sketch changed it and everything is working fine now
Navigation
[0] Message Index
[*] Previous page
Go to full version