1,805
questions
0
votes
1
answer
21
views
nanoFramework - using windows as a target with a USB to I2C converter
Is it possible to use nanoFramework with a USB top I2C serial converter so that it may be used on a Windows 10/11 client.
If so, is there a recommended hardware USB/I2C device.
0
votes
1
answer
26
views
Defining PCF8574 I2C extender devices in a C++ class
I am trying to use ESP32 with PCF8574, using VS Code and PlatformIO.
Basically, it is working well, I can upload code after compilation and control the leds.
While defining the I2C extender (PCF8574), ...
0
votes
0
answers
32
views
HT16L21 - Ram Mapping LCD Driver I2C Interfacing
I'm trying to interface a custom LCD to a 24x4 Ram mapping driver chip from Holtek - HT16L21 in I2C mode with an arduino UNO. I'm referring the data sheet from holtek. I tried searching over the ...
1
vote
0
answers
73
views
How to Read and Write with Raspberry Pi Pico I2C protocol?
I am trying to implement a simple I2C to do the following:
Pico1 (Master) Sends the letter 'M' to Pico2 (Slave) and prints Master Sending: M.
Pico2 (Slave) Receives the Letter 'M' from Pico1 (Master) ...
0
votes
0
answers
17
views
Invalid Data acquired when MLX90614 connect with Logicrom SPARK LTE-g
i am getting repeated invalid data when connect MLX90614 with Logicrom SPARK board.. I am using PlatformIO with logicromSDK framework. its either connection or another configuration i dont know.. will ...
0
votes
2
answers
29
views
EIO problem with 2004 i2c lcd and raspberry pi pico [duplicate]
I have an raspberry pi pico and a 20x4 I2C lcd. But when I try to connect to the lcd, it raises this error:
I checked my wires many times. And I connect and disconnected them to much. but none of this ...
0
votes
1
answer
42
views
OSError [Errno 5] EIO with connecting to an I2C 2004 char LCD with raspberry pi pico
I have an 20x4 char LCD with an I2C convertor board. But when I'm connecting to it(I2C board), raspberry pi pico raises:
OSError: [Errno 5] EIO
I've double checked my wires - and my code too. and I've ...
0
votes
1
answer
55
views
How to write the device address when using HAL_I2C_Mem_Write and HAL_I2C_Mem_Read functions?
I want to use the HAL_I2C_Mem_Read() function to read a control register of ZSC31050 and then configure the control register by using the HAL_I2C_Mem_Write() function.
The default device address of ...
0
votes
0
answers
16
views
How to read the sequence chart of mpu6050?
click the link jump to view the sequence char
It's page 18 in the PDF: "MPU-6000 and MPU-6050 Product Specification".
My code of the register's R&W through I2C are as follows:
void ...
0
votes
0
answers
30
views
Getting OSError: [Errno 121] Remote I/O error with smbus on python (raspberry5) while trying to send data over I2C to Arduino
I connected the Pi5 via i2c with an Arduino Nano.
This is my Pi-Code:
from smbus import SMBus
from time import sleep
addr = 0x8
bus = SMBus(1)
sleep(1)
while 1:
bus.write_byte(addr, 0x1)
...
1
vote
0
answers
48
views
How to change the I2C configuration in ARM Trusted Firmware?
I have an STM32MP processor that needs ARM Trusted Firmware for communicating with the PMIC. But when I flashing the STM32MP processor with the firmware, I get an error that the I2C device is not ...
2
votes
1
answer
143
views
struct i2c_driver initialization of ‘int (*)(struct i2c_client *)’ from incompatible pointer type Kernel Device driver
I am trying to write a driver for my i2с device. But I got a dead end problem, which I could not solve with the help of Google for several days.
In general, I simplified the code to a minimum to ...
0
votes
1
answer
41
views
Trouble sending two bytes from a pi 5 master to a slave arduino mega (using smbus2 library)
I've tried using the write_byte function in the smbus2 library and I've been successful using that from the Raspberry Pi 5 to turn an LED connected to the Arduino Mega on and off.
My project involves ...
0
votes
0
answers
45
views
Can't make servomotors move with a Jetson card
I have a Arducam IMX477 12MP PTZ Camera that I am trying to control with my Jetson AGX Orin developer kit. For now, I am focused on controlling the servomotors -- I will take care of the video ...
0
votes
0
answers
44
views
Breaking Loops in Python
I have a long, I2C python program for a I2C MUX Board that I am making. I have 4 MUXs, in my program I am using a while loop for each one. Within the while loops, I have this structure (to make it ...
0
votes
0
answers
32
views
Hello, I'm trying to communicate between 2 Raspberry pi pico boards, one master and one slave
master code:
#The master tries to take the temperature and humidity read with the help of a dht11 sensor from the slave
#The master tries to retrieve the temperature and humidity read with a dht11 ...
1
vote
0
answers
50
views
Struggling To Understand How I2C Slave Address In RX Buffer Is Handled
I have a legacy project based on an Infineon/Cypress PSoC4 micro. I am attempting to port it to a new Infineon/Cypress part (PSoC4 MAX). The project is an I2C slave that communicates with an I2C ...
0
votes
0
answers
45
views
Implementing I2C_TIMEOUT to prevent blocking
I’m working on getting I2C_TIMEOUT to work, but am struggling. I can consistently get the errno of ETIMEDOUT to trigger with a faulty I2C device of mine, but I want to shorten that timeout to 10-20 ms....
0
votes
0
answers
49
views
ESP32-s3 master i2c guru meditation error
Basically, I'm using two ESP32-s3 to communicate with each other through i2c. For the slave ESP32, I have no problem with using the same method as how the master ESP32 is trying to read. I get the ...
0
votes
0
answers
126
views
I2C Bus Emulation on STM32 microcontroller
I have a custom board with a STM32 microcontroller as An I2C master which communicating with 3 I2C slave devices. Illustrated in Image 1.
I can simply sniff I2C bus with a logic analyzer to see what ...
0
votes
0
answers
21
views
STM32F429i-Disc1 , I2C Register configuration in order to drive an LED on through pcf8574 IO-Expander
im writing a Code which configurates I2C bus in STM32F429i_Disc1, first of all i configured the Clock followed by configuring I2C1 at pins PB9 (SDA)and PB8(SCL) , my I2C1 runs at a CLOCK of 45Mhz , ...
0
votes
1
answer
463
views
ESP32 Task Watchdog Triggered
I am working on an ESP32 project where I need to read luminosity data in a continuous loop.
Despite following various recommendations, including creating a task with tskIDLE_PRIORITY and increasing ...
0
votes
0
answers
53
views
i2c device not giving output when connecting to raspberry pi 4b
I am connecting i2c device (for displaying results) to raspberry pi 4b using GPIO pins all the connection is okay from raspberry pi to i2c display. and the address of i2c device i am putting ...
0
votes
1
answer
216
views
How to determine which 'hwmon' folder in 'sysfs' contains the sensor data?
I have an 'sht3x' temp/humidity sensor connected to my Raspberry Pi via I2C. I've written a bash script to get the sensor readings from sysfs. My problem is this: the name of the folder containing the ...
0
votes
1
answer
81
views
How to convert binary I2C output of L76K GPS module to ascii symbols?
I write MicroPython code for my Raspberry Pi Pico. I faced the problem with converting bytes to the string. I receive the following data from the GPS module:
32
b'\x07\xe8\x05\x1f\t"\r,\x19\x00!...
1
vote
0
answers
62
views
Ambiguous functioning of i2c register reading
I use the library “golang.org/x/exp/io/i2c” to handle a certain module (AS3935). The module provides 9 registers with the ability to read and write values to them, they are addressed from 0x00 to 0x08....
0
votes
0
answers
59
views
How to remove UU i.e. Busy state for i2c 2 line for Bullseye Debian Beaglebone Black?
I am working on Bullseye Debian image on Beaglebone Black and I was trying to connect my FRAM device on i2c2 line i.e. Pin 21 and 22. I am getting busy state i.e. UU in that for Addresses 0x54 to 0x57....
0
votes
0
answers
34
views
DMA I2C does not work well in stm32f10x.h
main.h
#include <stm32f10x.h>
static volatile u8 i2c_1_rx_data = 0;
static volatile u8 i2c_1_tx_data = 0;
static void i2c_1_init(void){
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);
...
0
votes
0
answers
18
views
i2c dma receive freezes code if called twice
The following is a low level code in mdk arm for stm32f1xx to receive data from the adxl thru i2c dma.. see in int main, how i commented the i2c read the second time.... The code works ... as soon as ...
0
votes
1
answer
127
views
Getting correct kobject for sysfs_notify()
I'm working on a PMBus device driver kernel module. (This is my first kernel module, so please be nice.) I've added a GPIO interrupt handler which just keeps track of the number of edges received on ...
0
votes
0
answers
66
views
Using VL53L3CX sensor and a BNO055 sensor with ESP32
I would like to use my ESP32 dev module to control the VL53L3CX-SATEL (STM ToF sensor) and the BNO055 (9 Axis IMU module from Adafruit) on the same I2C bus.
My future goal is to use multiple VL53L3CX ...
0
votes
0
answers
53
views
I2C on SAMD21 with Atmel Start works only in one direction
I am trying to establish a half-duplex I2C communication between two ATSAMD21G18A microcontrollers, using Atmel Start's I2C functionality. (HAL Synchronised I2C)
The automatically generated example ...
0
votes
1
answer
88
views
Problems with BNO055 (Arduino)
I'm facing a problem that I've tried everything and it doesn't solve it. I just want to read the acceleration on the serial monitor and plotter for now, the code runs, works and is OK, I've already ...
0
votes
1
answer
118
views
USB-Serial I2C Bridge to PCF8574 (USB to IIC Adapter Module, USB to IIC I2C UART Converter) Cannot communicate
I'm writing an application to send I2C Commands to via USB-RS232 (Hardware B0CFK14PVS) to my PCF8574. I've struggle trying to send commands to the PCF8575 through B0CFK14PVS.
The few libraries I found ...
0
votes
0
answers
52
views
STM32F030x Slave I2C device respond on 2 addresses
I have a project for simple switcher. I'm trying to configure the I2C communication in my project, after the Initialization my slave device respond on 2 addresses, one of this is i need(I configure it ...
0
votes
0
answers
70
views
STM32 F4 I2C loopback test
I have a STM32 f429zi disco board and I want to test I2C protocol.
I use I2C1 as master and I2C2 as slave but it can't work.
Code will get stuck at "while(!I2C_CheckEvent(I2C1,...
0
votes
1
answer
90
views
How can I "merge" these i2c sensor scripts, if at all?
I'm working on a little terminal-based, RPI-controlled sensor array project! The thing is, I'm a casual Java dev with no experience using Python, and all of my components run on the latter. The ...
0
votes
0
answers
32
views
DRV2605 PIC16F interfacing
I'm trying to drive DRV2605L (Adafruit DRV2605L) using PIC16F18877 (DM164142 evaluation board) to control an ERM but I'm getting nowwhere. The output is dead (even with simulation using an I2C ...
0
votes
1
answer
259
views
How can I fix ESP32 I2C Driver Installation Error with TCA9548 Multiplexer?
I'm encountering an issue with installing the I2C driver on an ESP32 microcontroller when using a TCA9548 multiplexer. I'm trying to communicate with devices connected to different channels of the ...
1
vote
1
answer
173
views
ACPI ASL/AML: Get GPIOs and LEDs working withing linux-drivers
I have a GPIO-Expander (PCF8574) in my x86-based System which is connected to the SMBus.
GPIO0-3 are used as GPIOs.
GPIO4-7 are used to controll LEDs.
To get it to work and later hopefully into the ...
1
vote
1
answer
63
views
Unable Initialize I2C Pins on Pico RP2040 for AS5601 Library using Earlphilhower's Arduino-Pico
I am using Earlphilhower's Arduino-Pico, and this AS5601 library for testing my AS5601 breakout board.
Below is the sample code I am running:
#include "Arduino.h"
#include "AS5601.h&...
0
votes
1
answer
221
views
Reading I2C HDC1080 sensor using the ULP RISC-V coprocessor on an ESP32-S3
well I am trying to read temp value at deepsleep with ESP32S3 ULP Riscv coprocessor from HDC1080 sensor with I2C .At first I write the code at Arduino for testing. it works fine
double temp() {
...
0
votes
1
answer
70
views
Adafruit BNO08x Lib Not working with PicoRP2040 - PlatformIO
I was trying to connect the BNO08x IMU Breakout board with Pico RP2040, I tried connecting it to both the I2C ports, but it didnt worked.
I am using the official Adafruit BNO08x lib.
Below is the part ...
0
votes
0
answers
25
views
msp430f5438a reading multiple sensor tmp117
My code worked fine if I only connect msp430 to one sensor. However, when I connect msp430 to 4 sensors. I try to read to only one sensor but it just stop at stop condition.
I expected to read sensor ...
0
votes
0
answers
55
views
Raspberry pi 4, ina219 Bi-Directional DC Current Power Supply Sensor
Good evening, I'm relatively new to raspberry pi 4 but I'm facing a problem. I am trying to use 4 ina219 sensors. But I need to givethem a different address (i2c) so that the raspberry pi can ...
0
votes
0
answers
38
views
I2C problems communicating with I2C Analog Devices AD5112 Digital Pot
I am having I2C issues communicating with an Analog Devices AD5112 Digital Pot.
The datasheet says it has a 16 Bit shift register so it seems you write 16 bits to it (2 bytes) and read back 2 bytes. ...
0
votes
1
answer
64
views
How to receive a float array using esp8266 via I2c
I tried to receive array of float values via I2c using Esp8s66 (in Arduino IDE) in the following way:
void receiveEvent(int byteCount) {
// Ensure byteCount matches the size of the float array
if (...
2
votes
1
answer
51
views
I2C Communication with Tiva TM4C123GXL
I am trying to connect a Tiva TM4C123GXL with I2C. I think I am writing to the data register properly, however every single time I read from I2C, I am always getting 0xFF back. I am connected to an ...
1
vote
0
answers
37
views
GPIO I2C IMU on OrangePi CM4 Running Android Doesn't Interface With Native Apps
I need an Adafruit LSM6DSOX + LIS3MDL to act as the IMU sensor array by default for apps running on Android, which is installed on an OrangePi CM4. I know I have the IMU connected properly, as I can ...
0
votes
1
answer
322
views
I2C LCD1602 interfacing with PIC16F877A
My partner and I are currently building out an interface code set for a PIC16F877A microcontroller and a LCD1602 I2C screen
We can onboard everything perfectly fine however nothing shows on the screen....