Go to advanced search

by laalex
Sun Jun 19, 2016 11:48 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problem hooking up SparkFun Canbus controller
Replies: 6
Views: 2830

Re: Problem hooking up SparkFun Canbus controller

Hey guys,

Well, I finally let it go and bought a new MCP2515 based can bus shield that works with 3.3V and it seems to be plug-and-play for Raspberry PI. So this one just works as expected.
by laalex
Sat Jun 04, 2016 7:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 153
Views: 247507

Re: [quick-guide] CAN bus on raspberry pi with MCP2515

Hey saper_2, can we have a small private chat somehow ( facebook or something with IM?). If so, please let me know by a private message with your contact details. Thanks a lot!
by laalex
Sat Jun 04, 2016 4:09 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 153
Views: 247507

Re: [quick-guide] CAN bus on raspberry pi with MCP2515

So, @Canberry did you managed to make the mcp2515 work with the 03 version of rpy? Should I do a downgrade?
by laalex
Sun May 29, 2016 9:57 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 153
Views: 247507

Re: [quick-guide] CAN bus on raspberry pi with MCP2515

Ok. Then it seems that my MCP2515 is fried. It had a point where it was very heated (burnt my finger when touched it) and maybe that's why it doesn't detect it. I'll check it tomorrow with an arduino to see if it is working or not. If it is working with arduino then I'll program an atmega328p and us...
by laalex
Sun May 29, 2016 9:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 153
Views: 247507

Re: [quick-guide] CAN bus on raspberry pi with MCP2515

Also, my last question here: if the can bus shield is not attached to any can, should the raspberry PI detect the can0?

I have ordered the can bus module that the creator of this post has been using and I'll wait for it to test. I just need to know the above.

Thanks a lot everyone!
by laalex
Sun May 29, 2016 9:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 153
Views: 247507

Re: [quick-guide] CAN bus on raspberry pi with MCP2515

Running the SPI test utility (code below) I always get the following answer (for spidev0.1) having the MCP2515 sparkfun shield wired to my PI: Response: spi mode: 0 bits per word: 8 max speed: 500000 Hz (500 KHz) FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ...
by laalex
Sun May 29, 2016 8:21 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 153
Views: 247507

Re: [quick-guide] CAN bus on raspberry pi with MCP2515

Alsom @edo1, should the can0 automatically be dispalyed if the circuit is good? Or to test a restart is required for every time I try a new wire configuration?
by laalex
Sun May 29, 2016 8:20 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 153
Views: 247507

Re: [quick-guide] CAN bus on raspberry pi with MCP2515

@edo1, thanks a lot for your information. It seems that everything is fine software side. It should be a hw issue or a wiring issue somehow. I'll try to test the shield tomorrow with an arduino to see if it's going to work as expected or if it's not working (to know if the MCP2515 is fried or is goo...
by laalex
Sun May 29, 2016 8:05 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 153
Views: 247507

Re: [quick-guide] CAN bus on raspberry pi with MCP2515

Oh. I see now. It should be fine then since I have the /dev/spi0.1 in it's place. I'm doing a apt-get update && apt-get upgrade right now and I see that several overlays are being updated/added, them including mcp and spi. So after the update finishes I'll give it another try. The CLK line doesn't h...
by laalex
Sun May 29, 2016 7:35 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 153
Views: 247507

Re: [quick-guide] CAN bus on raspberry pi with MCP2515

Last thing I have to mention and ask so I know if this is OK. I've hooked up the RST pin on the arduino shield to the 5V pin on the shield. Also, from the raspberry pi I use the 5V and GND to plug into the 5V and GND spots near the DB9 connector so I can power the shield. The strange thing over here...
by laalex
Sun May 29, 2016 7:23 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 153
Views: 247507

Re: [quick-guide] CAN bus on raspberry pi with MCP2515

Also this seems to be odd: If I run dmesg and search for mcp or spi I get nothing in return:

Code: Select all

[email protected]:~ $ dmesg | grep mcp
[email protected]:~ $ dmesg | grep spi
Shouldn't I at least get something for SPI?
by laalex
Sun May 29, 2016 7:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 153
Views: 247507

Re: [quick-guide] CAN bus on raspberry pi with MCP2515

I'll try to hook up the reset pin to mcp2515 vcc. Also, just to check: the arduino pins are tied into the LLC to the HV and the raspberry pi pins are wirde to the LV on the LLC side. The HV is 5V from raspberry and LV is 3.3 from raspberry. Shield GND is wired to Raspberry GND. Is this correct? Edit...
by laalex
Sun May 29, 2016 7:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 153
Views: 247507

Re: [quick-guide] CAN bus on raspberry pi with MCP2515

I have another question also, where should the shield reset pin be hooked up with the Raspberry PI?
by laalex
Sun May 29, 2016 6:52 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 153
Views: 247507

Re: [quick-guide] CAN bus on raspberry pi with MCP2515

So, you don't see/can't access can0 from ifconfig/ip ? Looking at your circuit, I see (potential) problem: not translating MOSI & CE from RPi . If you power MC2515 from 5V then it's acceptable logic levels are higher (usually Vin(hi)_min=~3,5V (70% of Vcc)), so the mcp2515 might not catch (see) the...
by laalex
Sun May 29, 2016 6:25 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 153
Views: 247507

Re: [quick-guide] CAN bus on raspberry pi with MCP2515

Here is a diagram for my circuit. The software is fine. I have everything required plus the vcan is working perfectly.

Do You see anything wrong in the wiring?
by laalex
Sat May 28, 2016 8:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problem hooking up SparkFun Canbus controller
Replies: 6
Views: 2830

Re: Problem hooking up SparkFun Canbus controller

The issue was related to wiring. The reset pin on the arduino shield was floating, resulting in unstable can0 connection. I realised as I was holding the shield and touching the reset pin it was working. When I let if go I got the can0 cannot be found error. Hooked up the reset pin and can0 was up ...
by laalex
Sat May 28, 2016 2:30 pm
Forum: Troubleshooting
Topic: MCP2515 CAN Bus problem on RPi 2
Replies: 4
Views: 2538

Re: MCP2515 CAN Bus problem on RPi 2

I have the same problem. Can you please show me your wiring?
by laalex
Sat May 28, 2016 2:28 pm
Forum: Troubleshooting
Topic: No can0 interface RPi 3
Replies: 10
Views: 3456

Re: No can0 interface RPi 3

I have the same problem but the commands above return for me: [email protected]:~ $ lsmod | grep mcp25 mcp251x 8502 0 can_dev 9561 1 mcp251x [email protected]:~ $ dmesg | grep mcp25 -> returns nothing [email protected]:~ $ dmesg | grep spip -> returns nothing GPIO test: Resetting MCP2515 RESET 255 0xff Read ...
by laalex
Sat May 28, 2016 2:07 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 153
Views: 247507

Re: [quick-guide] CAN bus on raspberry pi with MCP2515

I have the same problem. I used a logic level converter for all the pins (MISO,MOSI,CS and INT) and only for MISO and INT and I can't get the can0 to show in under any circumstance. A little bit of help is appreciated
by laalex
Fri May 27, 2016 7:36 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problem hooking up SparkFun Canbus controller
Replies: 6
Views: 2830

Re: Problem hooking up SparkFun Canbus controller

Hello there, I have the same issue as you. It seems I cannot see the can interface in any way. I have the same shield and a raspberry pi 3. So, my wiring is the following: SHIELD MISO ---> Logic Level Converter ----> Rpy SPI0 MISO Shield MOSI <---> Rpy SPI0 MOSI Shield CS <---> RPY CS0/CE0 Shield Cl...

Go to advanced search