Go to advanced search

by edo1
Tue Mar 22, 2016 10:02 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: n.3 UART RS232 by using Raspberry
Replies: 4
Views: 988

Re: n.3 UART RS232 by using Raspberry

Pi is not for industry, it's not reliable like specially designed SBC for industrial applications IMHO Pi's reliability is good enough Second'os: In industrial SBC you have much more reliable memory (that can works for years) than RPi (SD card can work up to 6-15 months - depends on card)... There ...
by edo1
Tue Mar 22, 2016 9:26 pm
Forum: Automation, sensing and robotics
Topic: Using an I2C expander to connect multiple distance sensors?
Replies: 35
Views: 4780

Re: Using an I2C expander to connect multiple distance senso

The point here is that three HC-SR04 mean dedicate 6 GPIO ports. you could use common output pin for all sensors and one input pin per sensor, couldn't you? You say you are working on a CAN bus expander. ¿Is there any reason you know to consider using CAN better than I2C? really CAN bus GPIO expand...
by edo1
Tue Mar 22, 2016 7:32 am
Forum: Troubleshooting
Topic: Raspberry PI 3 / Only 1 usb port works at a time
Replies: 9
Views: 1406

Re: Raspberry PI 3 / Only 1 usb port works at a time

have you tested another kind of devices? (for example usb flash)
by edo1
Tue Mar 22, 2016 7:24 am
Forum: Troubleshooting
Topic: Migration from Pi2 to Pi 3 - usb and system performance
Replies: 3
Views: 670

Re: Migration from Pi2 to Pi 3 - usb and system performance

the same RPI2 is slow now?
by edo1
Mon Mar 21, 2016 3:21 pm
Forum: Automation, sensing and robotics
Topic: Using an I2C expander to connect multiple distance sensors?
Replies: 35
Views: 4780

Re: Using an I2C expander to connect multiple distance senso

jesus_malaga wrote:but I do not want to run out of GPIO pins. Apart of that, the system has some extra hardware
IMHO you could connect time-sensitive things (like HC-SR04) directly to GPIO-pins, all others things - to expander.
by edo1
Mon Mar 21, 2016 3:17 pm
Forum: Automation, sensing and robotics
Topic: Using an I2C expander to connect multiple distance sensors?
Replies: 35
Views: 4780

Re: Using an I2C expander to connect multiple distance senso

I'm trying to use HC-SR04 over CAN bus (with MCP25020 GPIO expander). It seems to work, but I haven't tested it well yet.
And yes, I don't need so accurate measurement.
by edo1
Mon Mar 21, 2016 9:30 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 146
Views: 199025

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

because there is no such pin on RPI ;)
by edo1
Mon Mar 21, 2016 8:33 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 146
Views: 199025

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

vsboost wrote:"so powering MCP2515 and TJA1050 from 5V will break Pi IOs" why is this so?
because MCP2515 will produce 5V on his output pins (including those that are connected to PRI)
by edo1
Sun Mar 20, 2016 11:10 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 146
Views: 199025

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

if you want to setup interface at startup you could add to /etc/network/interfaces

Code: Select all

auto can0
iface can0 can static
        bitrate 125000
by edo1
Sun Mar 20, 2016 11:02 pm
Forum: Beginners
Topic: Power for multiple PI's
Replies: 9
Views: 1323

Re: Power for multiple PI's

IMHO you need something like MW LRS-50-5.
http://www.meanwell.com/webapp/product/ ... rod=LRS-50
by edo1
Sun Mar 20, 2016 4:09 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [SOLVED] DS18B20 1-wire temperature sensor driver broken?
Replies: 12
Views: 4895

Re: DS18B20 1-wire temperature sensor driver broken?

Thanks very much for this, I haven't tried the bitbanging yet as I feel the standard kernel driver should work for me also. This particular sensor and connections work fine when used with an Arduino-type device (well, Teensy LC). The part number is "DALLAS DS18B20P" so you're right about parasitic ...
by edo1
Sun Mar 20, 2016 11:21 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [SOLVED] DS18B20 1-wire temperature sensor driver broken?
Replies: 12
Views: 4895

Re: DS18B20 1-wire temperature sensor driver broken?

jbeale wrote:I have a problem with 1-Wire temperature sensor.
do you use parasite power?
is it ds18b20 or ds18b20-PAR?
by edo1
Sat Mar 19, 2016 11:53 pm
Forum: Troubleshooting
Topic: Raspberry Pi 2 extra serial port and gps
Replies: 6
Views: 1409

Re: Raspberry Pi 2 extra serial port and gps

Did you set baudrate?
You could run "minicom -so" in a terminal window for tests.
by edo1
Fri Mar 18, 2016 9:37 am
Forum: Troubleshooting
Topic: Raspberry Pi 3 microSD card slot - spring ejection?
Replies: 13
Views: 34514

Re: Raspberry Pi 3 microSD card slot - spring ejection?

I had a lot of issues with B+/2B card slot - unintentional card touch results in a system failure. So I welcome this decision.
Indeed I like SD slot of first RPI. I don't see any advantage of microSD for RPI's.
by edo1
Fri Mar 18, 2016 9:21 am
Forum: Advanced users
Topic: Interfacing DS2413 with raspberry pi
Replies: 2
Views: 677

Re: Interfacing DS2413 with raspberry pi

I have experience only with ds18b20 but it shouldn't matter. You could read any howto about 1-wire for RPI.
by edo1
Wed Mar 16, 2016 12:14 am
Forum: Linux Kernel
Topic: raspberry and mainline kernel trees
Replies: 3
Views: 2975

raspberry and mainline kernel trees

Sorry for a dumb questions (and for bad English), but I couldn't find any information about current state of PRI support in a different kernel trees. 1. What about vanilla kernel? For example what is the difference between 4.5 vanilla branch and 4.5 raspberry branch? What wouldn't work with vanilla ...
by edo1
Tue Mar 15, 2016 10:45 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 339363

Re: CAN controller

skpang wrote:The only thing I'm not sure is the interrupt pin. Both devices is connected to GPIO25 as stated in the overlay. Maybe it need individual pin but it is hard coded at the moment.
Are you out of GPIO pins?
IMHO pin sharing is a bad idea even if it is supported by the software.
by edo1
Tue Mar 15, 2016 10:38 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 813
Views: 339363

Re: CAN controller

right now I still focus on getting the spi driver working fast. is this work finished? BTW, does mcp2515 (especially mcp251x module) get some advantage of DMA usage? I doubt because CAN-packets are too short (only a few bytes) and related SPI-transfers are too short too. As soon as I finish the spi...
by edo1
Sun Mar 13, 2016 5:47 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Reading UART registers
Replies: 4
Views: 2199

Re: Reading UART registers

honda4life wrote:So I have to check the TX buffer is empty AND the last byte is completely sent.
why do you want to bypass OS?
you could use tcdrain() function to wait until last byte is transmitted, TIOCOUTQ ioctl to check how many bytes are in output queue.
by edo1
Thu Mar 10, 2016 1:48 pm
Forum: Русский
Topic: Зависает Raspberry Pi 2
Replies: 11
Views: 5615

Re: Зависает Raspberry Pi 2

- хаб на 49 портов usb со своим, отдельным питанием. - на хабе висят 22 модема 3G. боюсь спросить, для чего могут понадобиться 22 модема? смс-спам? Подавать питание 5В на разъём GPIO некорректно - схема защиты по питанию, подаваемому через microUSB, (п/п предохранитель + супрессор) не будет нормаль...
by edo1
Thu Mar 10, 2016 1:42 pm
Forum: Русский
Topic: Не работают многие сайты.
Replies: 5
Views: 2559

Re: Не работают многие сайты.

Istar_ wrote:В чем может быть причина подобной избирательности браузеров?
проблемы с mtu?
by edo1
Thu Mar 10, 2016 1:20 pm
Forum: C/C++
Topic: I have a question about CAN2.0b
Replies: 2
Views: 584

Re: I have a question about CAN2.0b

about can in userspace you could use this code as an example:
https://github.com/linux-can/can-utils

what about rs485 - which kind of hardware are you going to use at rpi side?
by edo1
Fri Mar 04, 2016 10:55 am
Forum: Java
Topic: 9-bit Serial by way of parity bit
Replies: 8
Views: 6809

Re: 9-bit Serial by way of parity bit

Jakeyboy wrote:Based on the information I can find the UART in the RPI does not support 9-bits natively...
It does indeed.

You could find kernel patch here:
http://marc.info/?l=linux-serial&m=145706834101241&w=2
by edo1
Fri Mar 04, 2016 10:23 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RaspberryPi Serial port config for MARK, SPACE parity bits.
Replies: 5
Views: 3791

Re: RaspberryPi Serial port config for MARK, SPACE parity bi

Hecnel wrote:I do the same think you do and I have that nothing happens in output.
yes, current pi kernel doesn't support CMSPAR.

But you could add CMSPAR support with this patch:
http://marc.info/?l=linux-serial&m=145706834101241&w=2
by edo1
Fri Nov 06, 2015 3:21 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI with MCP2515
Replies: 4
Views: 2634

Re: SPI with MCP2515

Thanks for your reply. So it is possible to communicatie on the can bus without any hardware? Or is a can transceiver required? Why are people still using the mcp2515 to communicate on the CAN bus while it isn't necessary? Of course, you need MCP2515 hardware. But you don't make to write own low-le...

Go to advanced search