Go to advanced search

by fivdi
Sat Nov 13, 2021 7:41 am
Forum: General discussion
Topic: Cconvert I2C Arduino to RPI
Replies: 12
Views: 424

Re: Cconvert I2C Arduino to RPI

I don't know if 0x47 is a register at all, just know is sequence of bytes goes to the addressed item. In that case it would make sense to take a look at the datasheet for the I2C device you would like to communicate with. The datasheet will reveal whether or not the device has a register at 0x47. S...
by fivdi
Fri Nov 12, 2021 4:53 pm
Forum: Troubleshooting
Topic: Node version differen than Nodejs version
Replies: 1
Views: 69

Re: Node version differen than Nodejs version

It looks like two different versions of Node.js have been installed.
by fivdi
Fri Nov 12, 2021 4:44 pm
Forum: General discussion
Topic: Cconvert I2C Arduino to RPI
Replies: 12
Views: 424

Re: Cconvert I2C Arduino to RPI

so Arduino Wire.beginTransmission(0x35); //address to use Wire.write(0x47); Wire.write(0x53); Wire.write(0x4B); Wire.write(0x20); Wire.endTransmission(); will be the same on the pi using from smbus import SMBus bus = SMBus(1) bus.write_i2c_block_data(0x35, 0x47, [0x53, 0x48, 0x20]) Is that correct?...
by fivdi
Thu Nov 11, 2021 8:39 pm
Forum: General discussion
Topic: Cconvert I2C Arduino to RPI
Replies: 12
Views: 424

Re: Cconvert I2C Arduino to RPI

picandies wrote:
Thu Nov 11, 2021 7:05 pm
What is the equiv in rpi land? I don't think I want to send the address more than once
It depends on which programming language is being used on the Pi.
Which programming language do you intend using?
by fivdi
Sun Nov 07, 2021 5:55 am
Forum: SDK
Topic: openocd LIBUSB_ERROR_ACCESS
Replies: 25
Views: 1390

Re: openocd LIBUSB_ERROR_ACCESS

LummoxMakes wrote:
Sat Nov 06, 2021 5:05 pm
I hope I've correctly typed in all in the right places, but made no difference sudo is still required.

Does it work if the Pi is either rebooted or by running the following command in a terminal window to activate the new udev rules:

Code: Select all

sudo udevadm control --reload-rules & udevadm trigger
by fivdi
Sat Nov 06, 2021 3:24 pm
Forum: SDK
Topic: openocd LIBUSB_ERROR_ACCESS
Replies: 25
Views: 1390

Re: openocd LIBUSB_ERROR_ACCESS

I do not have a /etc/udev/rules.d/60-openocd.rules The only file in the directory is /etc/udev/rules.d/99-com.rules which does not contain the additional line.. Simply create the file /etc/udev/rules.d/60-openocd.rules and add the exact content suggested above. Also I'm at a loss to understand and ...
by fivdi
Sat Nov 06, 2021 2:41 pm
Forum: Compute Module
Topic: Use 2 SPI in RPI CM4
Replies: 9
Views: 369

Re: Use 2 SPI in RPI CM4

Is GPIO18 really being used as the chip select for both devices? I wouldn't expect this to function correctly.
by fivdi
Sat Nov 06, 2021 2:02 pm
Forum: General
Topic: [SOLVED] I2C Bus Clear Feature
Replies: 9
Views: 412

Re: [SOLVED] I2C Bus Clear Feature

You're welcome :)
by fivdi
Sat Nov 06, 2021 1:41 pm
Forum: Beginners
Topic: Install NodeJS
Replies: 1
Views: 108

Re: Install NodeJS

How did you try to install Node.js and what were the problems? Note that Node.js no longer officially supports the ARMv6 architecture which is the architecture used by the processor on the Raspberry Pi Zero. Unofficially, ARMv6 is still supported but the binaries are a little difficult to find. They...
by fivdi
Sat Nov 06, 2021 8:47 am
Forum: General
Topic: Setting IC_FS_SCL_HCNT and IC_FS_SCL_LCNT has no effect
Replies: 2
Views: 151

Re: Setting IC_FS_SCL_HCNT and IC_FS_SCL_LCNT has no effect

The following information is from the description of the IC_FS_SCL_LCNT and IC_FS_SCL_HCNT registers in the RP2040 Datasheet: This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE[0] register being set to 0. Writes at other times have no effect. Perh...
by fivdi
Sat Nov 06, 2021 8:27 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI Clock not doing enough pulses
Replies: 7
Views: 316

Re: SPI Clock not doing enough pulses

To me, it looks like each call of "spi.readbytes(2)" results in the display of 16 pulses on the scope which would be correct as 2 bytes (16 bits) are being read. If it's necessary to read 22 bits, then read 3 bytes (or 24 bits) and the extract the required 22 bits from the data returned.
by fivdi
Sat Nov 06, 2021 7:12 am
Forum: General
Topic: [SOLVED] I2C Bus Clear Feature
Replies: 9
Views: 412

Re: I2C Bus Clear Feature

The Pico SDK i2c.h header file contains information about the values of all the DW_apb_i2c configuration parameters on the RP2040. See here . As can be seen on this line , IC_BUS_CLEAR_FEATURE is 0x0 which means that the I2C peripherals on the RP2040 do not include hardware support for the bus clear...
by fivdi
Mon Oct 18, 2021 7:34 pm
Forum: General
Topic: Pico not enumerating
Replies: 1
Views: 209

Re: Pico not enumerating

hippy wrote:
Sun Oct 17, 2021 11:34 pm

Code: Select all

[80887.708022] usbhid 1-1.4:1.4: can't add hid device: -32
[80887.708106] usbhid: probe of 1-1.4:1.4 failed with error -32

It's probably not much help, but error -32 means a pipe is broken. See here.
by fivdi
Fri Jul 02, 2021 7:39 pm
Forum: SDK
Topic: Setting up multiple GPIO at once using masks
Replies: 1
Views: 462

Re: Setting up multiple GPIO at once using masks

In most cases, if a "*_mask[ed]" function is available, it means that there is a single register where each bit in the register represents one of the 30 GPIOs. For example, multiple GPIOs can be configured as outputs by setting the value of the gpio_oe_set register to the appropriate value...
by fivdi
Fri Jun 25, 2021 1:19 pm
Forum: MicroPython
Topic: mpremote -- MicroPython remote control
Replies: 11
Views: 1469

Re: mpremote -- MicroPython remote control

What impressed me is that files written from MicroPython on the Pico appear in that directory. I was wondering if this would work. Good to know that it does. One thing I would point out is I had ignored this thread for a week because I imagined "mpremote -- MicroPython remote control" wou...
by fivdi
Wed Jun 23, 2021 8:27 pm
Forum: Troubleshooting
Topic: i2c port not detecting data
Replies: 4
Views: 210

Re: i2c port not detecting data

Can you post a photo which clearly shows the Raspberry Pi, the ADS1115 and the wires connecting the Raspberry Pi to the ADS1115? In the photo, it should be possible to see which pins on the Pi are connected to which pins on the ADS1115. Also, can you post a link to the ASD1115 board that is being us...
by fivdi
Wed Jun 23, 2021 9:50 am
Forum: MicroPython
Topic: mpremote -- MicroPython remote control
Replies: 11
Views: 1469

Re: mpremote -- MicroPython remote control

I have used mpremote a little and haven't had too many issues yet. The command that I like most so far is " mpremote mount . " which makes it look as if the current directory on the development machine had been copied to the microcontroller flash, but it hasn't, and everything works as if ...
by fivdi
Sun Jun 20, 2021 8:54 am
Forum: MicroPython
Topic: mpremote -- MicroPython remote control
Replies: 11
Views: 1469

mpremote -- MicroPython remote control

MicroPython v1.16 was released last Friday. It comes with a new command line tool called mpremote which is intended to be the main way to remotely control a MicroPython-based device from the command line. For further information see the release notes for MicroPython v1.16 at https://github.com/micro...
by fivdi
Thu Jun 17, 2021 9:17 pm
Forum: MicroPython
Topic: Import “Machine” Question?
Replies: 5
Views: 859

Re: Import “Machine” Question?

.... for microcontrollers flashed with CircuitPython the corresponding hardware functionality is probably in the board module instead. Not really, board is all about board specific pins. >>> import board >>> board. A0 A1 A2 A3 BAT_SENSE GP0 GP1 GP10 GP11 GP12 GP13 GP14 GP15 GP16 GP17 GP18 GP19 GP2 ...
by fivdi
Thu Jun 17, 2021 7:56 pm
Forum: MicroPython
Topic: Import “Machine” Question?
Replies: 5
Views: 859

Re: Import “Machine” Question?

machine is a built-in module in MicroPython which means it's part of MicroPython itself. CircuitPython and MicroPython similar but not exactly the same. One difference is that CircuitPython has no built-in module called machine.
by fivdi
Tue Jun 15, 2021 4:46 pm
Forum: SDK
Topic: SDK 1.2 defines
Replies: 16
Views: 930

Re: SDK 1.2 defines

you did not answer my questions... Where ( CMake ) PICO_STDIO_UART is transformed to LIB_PICO_STDIO_UART ? Yes, my apologizes, you are right, I didn't answer your questions. In this line of cmake code "pico_add_impl_library" is called with "pico_stdio_uart" passed as a parameter...
by fivdi
Tue Jun 15, 2021 3:56 pm
Forum: SDK
Topic: SDK 1.2 defines
Replies: 16
Views: 930

Re: SDK 1.2 defines

Good idea.
by fivdi
Tue Jun 15, 2021 3:52 pm
Forum: SDK
Topic: SDK 1.2 defines
Replies: 16
Views: 930

Re: SDK 1.2 defines

.... I[t] can also be seen in the pico-sdk v1.2.0 source at .... Where PICO_STDIO_UART is transformed to LIB_PICO_STDIO_UART https://github.com/raspberrypi/pico-sdk/blob/master/src/rp2_common/pico_stdio/stdio.c#L249 only 3 keys have LIB_ fooooo.... Sorry for the confusion. I know that PICO_STDIO_UA...

Go to advanced search