Go to advanced search

by Arjan
Fri Jun 15, 2018 4:16 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: More BCM2835 / SPI questions
Replies: 15
Views: 2787

Re: More BCM2835 / SPI questions

julyjim wrote:
Fri Jun 15, 2018 1:35 pm
I will try to modify my SPI_FIFO DATA to "send" only one bit and see what develops.
The AUX SPI has the possibilty to shift bits --> AUXSPI0/1_CNTL0 Register
by Arjan
Fri Jun 15, 2018 9:08 am
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 296
Views: 90291

Re: Circle - C++ bare metal environment (with USB)

rst wrote:
Wed Sep 27, 2017 6:22 am
Nevertheless there is an application of Circle networking for stage light environments (UDP-based ArtNet) which seems to work well.
I can confirm that Circle is a robust platform for UDP-based ArtNet and OSC
by Arjan
Fri Jun 15, 2018 8:51 am
Forum: C/C++
Topic: Writing data to BCM2835 - SPI
Replies: 24
Views: 4775

Re: Writing data to BCM2835 - SPI

10.6.1 Polled a) Set CS, CPOL, CPHA as required and set TA = 1. b) Poll TXD writing bytes to SPI_FIFO, RXD reading bytes from SPI_FIFO until all data written. c) Poll DONE until it goes to 1. d) Set TA = 0. The above can be implemented as follows: void bcm2835_spi_writenb(const char* tbuf, const uin...
by Arjan
Fri Jun 15, 2018 8:43 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: More BCM2835 / SPI questions
Replies: 15
Views: 2787

Re: More BCM2835 / SPI questions

To clarify - I am not using ioctl , just modified BCM2835 C library. Hi, I suppose you are referring to http://www.airspayce.com/mikem/bcm2835/ - a great library for low-level programming in Linux. I am using the SPI code for a long time (mainly on baremetal https://github.com/vanvught/rpidmx512/tr...
by Arjan
Wed Jun 13, 2018 5:22 pm
Forum: Troubleshooting
Topic: Control head light from rpi via dmx
Replies: 7
Views: 2189

Re: Control head light from rpi via dmx

I suggest you might find something useful on this site: https://learn.adafruit.com because they focus on beginners with Arduino/Rpi. There is no DMX stuff on Adafruit. The best option to look for OLA information is the OLA website https://www.openlighting.org/ola/tutorials/ola-on-raspberry-pi/ I ha...
by Arjan
Wed Jun 13, 2018 6:31 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Send 64 bit from one Raspberry PI 3 B to another
Replies: 30
Views: 3455

Re: Send 64 bit from one Raspberry PI 3 B to another

Page 160 in https://www.raspberrypi.org/app/uploads/2012/02/BCM2835-ARM-Peripherals.pdf " The BSC interface can be used as either a Broadcom Serial Controller (BSC) or a Serial Peripheral Interface (SPI) controller. ... The SPI controller implements 3 wire serial protocol variously called Serial Pe...
by Arjan
Tue Jun 12, 2018 8:40 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Send 64 bit from one Raspberry PI 3 B to another
Replies: 30
Views: 3455

Re: Send 64 bit from one Raspberry PI 3 B to another

DougieLawson wrote:
Tue Jun 12, 2018 8:25 pm
Not with Linux, because there's no kernel driver for it.
Still the question, does the SoC support the SPI Slave functionality ? The I2C Slave is working nicely.
by Arjan
Tue Jun 12, 2018 8:23 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Send 64 bit from one Raspberry PI 3 B to another
Replies: 30
Views: 3455

Re: Send 64 bit from one Raspberry PI 3 B to another

https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md That page describes the SPI Master interface. The SoC has also a I2C/SPI Slave interface at address (BCM2835_PERI_BASE + 0x214000). I've got the SPI Slave partially working. Hence I would like to know if it can work at all.
by Arjan
Tue Jun 12, 2018 6:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Send 64 bit from one Raspberry PI 3 B to another
Replies: 30
Views: 3455

Re: Send 64 bit from one Raspberry PI 3 B to another

GuruMeditation wrote:
Mon Jun 11, 2018 10:52 am
The RaspberryPI's hardware SPI does not support slave mode.
Do you have a formal written/link/reference for the statement above?
by Arjan
Tue Jun 12, 2018 11:13 am
Forum: Troubleshooting
Topic: Control head light from rpi via dmx
Replies: 7
Views: 2189

Re: Control head light from rpi via dmx

Hi Jolle,

In Linux, doing DMX out only, using the native UART, then the best option is to install OLA -> https://wiki.openlighting.org/index.php ... berry_Pi_3

- Arjan
by Arjan
Mon May 14, 2018 5:02 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Pi as Artnet or DMX receiver?
Replies: 11
Views: 7029

Re: Pi as Artnet or DMX receiver?

Bitwizards already have a HAT board with a FT245RL chip for receiving DMX. The FT245RL is used as the USB interface with a host (PC or DMX/RDM console. Receiving and sending DMX512 is done with PL011 by means of baremetal programming. Linux cannot handle the DMX/RDM timing. An Art-Net solution can ...
by Arjan
Wed May 02, 2018 6:16 pm
Forum: Bare metal, Assembly language
Topic: Pi 3B+ Activity LED
Replies: 23
Views: 12553

Re: Pi 3B+ Activity LED

Ultibo wrote:
Mon Mar 19, 2018 7:18 am
For reference the activity LED on the 3B+ is now on GPIO 29 (Broadcom numbering).
And the mailbox property is still working fine. So there is no need to detect if you are running on 3B or on 3B+.
by Arjan
Sun Apr 29, 2018 12:28 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Open source C++ library for 12-Channel 16-bit PWM LED Driver TLC59711
Replies: 0
Views: 604

Open source C++ library for 12-Channel 16-bit PWM LED Driver TLC59711

https://github.com/vanvught/rpidmx512/tree/master/lib-tlc59711 Successfully tested with : Adafruit 12-Channel 16-bit PWM LED Driver - SPI Interface - TLC59711 (https://www.adafruit.com/product/1455) Supported platforms : Linux Raspbian Prerequisite: C library for Broadcom BCM 2835 as used in Raspber...
by Arjan
Sat Dec 16, 2017 6:17 pm
Forum: Bare metal, Assembly language
Topic: [Solved] UARTs break
Replies: 12
Views: 3949

Re: UARTs break

by Arjan
Sat Dec 16, 2017 3:37 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Open source C++ library for 16-Channel 12-bit PWM/Servo Driver PCA9685
Replies: 0
Views: 4052

Open source C++ library for 16-Channel 12-bit PWM/Servo Driver PCA9685

https://github.com/vanvught/rpidmx512/tree/master/lib-pca9685 Examples for PWM led and Servo are included. Successfully tested with : Adafruit 16-Channel PWM / Servo HAT for Raspberry Pi - Mini Kit ( https://www.adafruit.com/product/2327 ) Adafruit 16-Channel 12-bit PWM/Servo Driver - I2C interface ...
by Arjan
Sat Dec 16, 2017 3:30 pm
Forum: Bare metal, Assembly language
Topic: lwIP - A Lightweight TCP/IP stack
Replies: 20
Views: 9268

Re: lwIP - A Lightweight TCP/IP stack

A full TCP/IP stack is a serious undertaking, and what is the definition of full at this point, jumbo frames? IPV6? (it is up to you to decide what that means not for the public in general) And then you put an apl layer on that so you can write applications for this stack. That is after you figure ...
by Arjan
Sun Dec 10, 2017 6:28 pm
Forum: Bare metal, Assembly language
Topic: lwIP - A Lightweight TCP/IP stack
Replies: 20
Views: 9268

Re: lwIP - A Lightweight TCP/IP stack

You lost me you already gave the linked to circle which I thought had a full USB implementation and a partial Ethernet, they at least show you how to open the special pipe endpoint as I remember? So do you want me to just connect the Ethernet on it for you to play with. You will see LAN9512 gets en...
by Arjan
Sun Dec 10, 2017 10:51 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Open source C++ library for STMicro L6470 stepper motor driver
Replies: 0
Views: 1300

Open source C++ library for STMicro L6470 stepper motor driver

https://github.com/vanvught/rpidmx512/tree/master/lib-l6470 Supported devices : SlushEngine: Model X LT Stepper Motor Driver (https://roboteurs.com/products/slushengine) Compatible with the SlushEngine Python software library API SparkFun AutoDriver - Stepper Motor Driver (https://www.sparkfun.com/...
by Arjan
Sun Dec 10, 2017 10:30 am
Forum: Other projects
Topic: Raspberry Pi SMPTE Timecode LTC Reader / Converter
Replies: 0
Views: 3210

Raspberry Pi SMPTE Timecode LTC Reader / Converter

http://www.raspberrypi-dmx.org/raspberry-pi-timecode-ltc-reader Supported display output: Console (external monitor) OLED display 128 x 64 SSD1306 I2C LCD 16x2 I2C (auto-detect) 8x 7-Segment display Supported output protocols: MIDI Full Timecode Message Art-Net 3 Supported input protocols: SMPTE LTC...
by Arjan
Sun Dec 10, 2017 10:26 am
Forum: Other projects
Topic: Raspberry Pi Art-Net DMX Stepper Controller
Replies: 0
Views: 876

Raspberry Pi Art-Net DMX Stepper Controller

http://www.raspberrypi-dmx.org/raspberry-pi-artnet-dmx-stepper-controller The Raspberry Pi ArtNet DMX Stepper Controller is designed for controlling stepper motors via DMX. Main features Open source https://github.com/vanvught/rpidmx512/tree/master/linux_rpi_artnet_l6470 Open source C++ library for ...
by Arjan
Tue Sep 26, 2017 6:34 pm
Forum: Bare metal, Assembly language
Topic: lwIP - A Lightweight TCP/IP stack
Replies: 20
Views: 9268

Re: lwIP - A Lightweight TCP/IP stack

LdB wrote:
Tue Sep 26, 2017 6:26 pm
You actually can't use the Ethernet without first bringing up the USB on the Pi :-)
See also my previous append with
The Ethernet controller used on the Raspberry Pi is connected to the SoC via USB. So I really need to wait for full USB implementation
by Arjan
Tue Sep 26, 2017 6:32 pm
Forum: Bare metal, Assembly language
Topic: lwIP - A Lightweight TCP/IP stack
Replies: 20
Views: 9268

Re: lwIP - A Lightweight TCP/IP stack

LdB wrote:
Tue Sep 26, 2017 6:26 pm
Yes I know I have about 10 implementations of various things on Baremetal on the USB/Ethernet.
Links to source code?
by Arjan
Tue Sep 26, 2017 6:21 pm
Forum: Bare metal, Assembly language
Topic: lwIP - A Lightweight TCP/IP stack
Replies: 20
Views: 9268

Re: lwIP - A Lightweight TCP/IP stack

We have been thru all this before the IO speeds are fixed by the GPIO clock speeds Raspberry Pi 1 of 22.7Mhz, Raspberry Pi 2 of 41.7Mhz and the Raspberry Pi 3 at 65.8Mhz Subtract away your per packet bits and you would get the maximum possible speeds. For example if you ran a software UART format 1...

Go to advanced search