No video

STM32 Nucleo - Keil 5 IDE with CubeMX: Tutorial 7 - I2C interface

  Рет қаралды 55,924

Mutex Embedded

Mutex Embedded

6 жыл бұрын

Пікірлер: 37
@MrZitrex
@MrZitrex 6 жыл бұрын
Much better explained than recent Stm series but please do full ones. We want registers explained too. Thanks. Keep good work.
@drmaxb
@drmaxb 5 жыл бұрын
Thanks a great Deal for this video. It helped me alot after several manhours of failed debugging. Turns out for the Nucleo F410RB, STM32CubeMX initializes the wrong pins (PB6 and 7) instead of PB8/9 as i discovered by help of your video.
@joepighetti911
@joepighetti911 4 жыл бұрын
This comment saved me!!!! Thank you!!!
@yalginayyaltirik4607
@yalginayyaltirik4607 4 жыл бұрын
the best embedded teacher ever!!!
@mutexembedded2206
@mutexembedded2206 4 жыл бұрын
:)
@Grants2251
@Grants2251 5 жыл бұрын
Great video series, btw at 2:11 you can select from left peripherals i2c1 to enabled and cubemx will enable required pins
@asimabdulqayyum3360
@asimabdulqayyum3360 6 жыл бұрын
Hi..I want to communicate between two stm32 of different cores via I2C, lets say between F0 and F7.F0 would be slave and F7 master.The idea is when user button on F7 board is pressed ,the control will shift to F0..but i don't know how to give a slave address to my F0 and which registers to use for address..So how can i do that and how to make sure that address is not already in use.
@mandalmandal4593
@mandalmandal4593 3 жыл бұрын
I did this for the STM32F446RE board, the LED2 didn't turn on, the address is the same so its a bit weird, I think maybe my board is defective. any suggestions?
@jahnvibedia826
@jahnvibedia826 4 жыл бұрын
What other device have you used with which the stm32 is connected? I am trying to interface an arduino but it doesn't work.
@muhandes8453
@muhandes8453 3 жыл бұрын
I will be very happy if you make another series for STM32 :)
@savinogiovannimuscio2953
@savinogiovannimuscio2953 Жыл бұрын
Hi, i using 2x16 LCD with PCF8574 chip I2C, i tried all address in data scheet, i am using your same board F401RE but the device is not ready and led2 on board never switch on. I make your same connection on nucleo board SCL and SDA pin on PB8/PB9 respectly. The strange thing is that on arduino i have no issue and i can send some word on LCD like "hello word" ect. How is possible.
@hrishikeshb
@hrishikeshb 6 жыл бұрын
The HAL documentation says that you need to shift the device address by 1 to the left before calling the interface. Is there a reason you've not done that? Also wouldn't the device address be 0xD1 when you are reading from it since the RW bit is now 1.
@mutexembedded2206
@mutexembedded2206 6 жыл бұрын
HPB1980 Hi, The reason datasheet suggests shift to the left by 1 is because HAL library includes Rd/Wr bit with the address. In my case, I included that directly; Address with the Rd/Wr bit is 0xD0 = 1101 0000 Without Rd/Wr bit is 01101000 = 0x68 Hope this helps
@hrishikeshb
@hrishikeshb 6 жыл бұрын
Got it. Thank you. Wouldn't the read address be 0xD1 then since the RW bit is 1 when reading from the device.
@mutexembedded2206
@mutexembedded2206 6 жыл бұрын
HPB1980 That's right.. the HAL library receive function does that automatically.
@ismailsapmaz381
@ismailsapmaz381 3 жыл бұрын
great video from great man . Thank you Sir
@post2pa
@post2pa 5 жыл бұрын
Good job, very helpful, many thanks.
@mutexembedded2206
@mutexembedded2206 5 жыл бұрын
Cheers
@shrikantvaishnav1077
@shrikantvaishnav1077 3 жыл бұрын
Very helpful sir thanks👍👍
@carlosoliveira6867
@carlosoliveira6867 3 жыл бұрын
Hey, great video .. I was wondering how to connect your code from the video with the LCD via I2C on the stm32 discovery with this board.. i am trying without success, can you please help me?
@ir_wm_irsyaduddin
@ir_wm_irsyaduddin 4 жыл бұрын
already understand and get working, but something fishy happened, when it calculates the second, until 9 should be 10. but it becomes 16. the seconds count is correct until 60. just the numbering is wrong, i got until 90. Do you know about this?
@mutexembedded2206
@mutexembedded2206 4 жыл бұрын
Yes, that's BCD count.. so there are 4 bits for seconds and other 3 bits for 10s of seconds. 000 1001 = 9 decimal = 9 sec 001 0000 = 16 decimal = 10 sec
@joeltshiela4605
@joeltshiela4605 10 ай бұрын
thanks
@joepighetti911
@joepighetti911 4 жыл бұрын
Thanks Mohammed! Spot on!
@samiratalebi7803
@samiratalebi7803 5 жыл бұрын
tnx for Video. I want to sense data from SHT31 and send to one TRX modul(CC1101) and then from that to another TRX modul. I have write 2 Projekt seperatly. but when i add one to another , my sensor dont send data. I think , There ist Problem here: HAL_I2C_Master_Receive(&hi2c3, 0x44
@mutexembedded2206
@mutexembedded2206 5 жыл бұрын
Hi, I don't have enough details to attempt to help with this
@angelofdeath3628
@angelofdeath3628 2 жыл бұрын
If anyone else is stuck on the 1101000 to D0 conversion like I was (or I'm just stupid hehe). 1101 Binary is "D" in hex and 0000 is "0" in hex. Gotta split it into pairs of 4 :o
@mehmetdemir5655
@mehmetdemir5655 2 жыл бұрын
Thanks man🙏🏻
@mohamadali6174
@mohamadali6174 5 жыл бұрын
Good job 👍
@onszerai755
@onszerai755 3 жыл бұрын
Thanks
@mahmoudnabilelshall836
@mahmoudnabilelshall836 6 жыл бұрын
hello mohamed ,thanks for your tutorials i want to make I2C between the stm32 as master n ?؟two arduinos as slave can you help me
@mutexembedded2206
@mutexembedded2206 6 жыл бұрын
Mahmoud Elshall Hi Mahmoud, This is something that I definitely plan to make a tutorial about soon
@ifprra
@ifprra 6 жыл бұрын
Mahmoud Elshall I hope it will be soon, 😊
@pierastella6959
@pierastella6959 3 жыл бұрын
What's the addres for a I2C interface PCF8574T?
@mutexembedded2206
@mutexembedded2206 3 жыл бұрын
Most likely 0x40
@Graham1904
@Graham1904 3 жыл бұрын
You forgot to change your I2C - ready test back to 0xD0 from 0x32
@onszerai755
@onszerai755 3 жыл бұрын
i agree
STM32 Nucleo - Keil 5 IDE with CubeMX: Tutorial 8 - CRC32 Calculation
5:25
STM32-Nucleo - Keil 5 IDE with CubeMX: Tutorial 9 - FreeRTOS
13:58
Mutex Embedded
Рет қаралды 46 М.
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 17 МЛН
managed to catch #tiktok
00:16
Анастасия Тарасова
Рет қаралды 22 МЛН
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 14 МЛН
Using I2C for any device on STM32 with HAL | VIDEO 26
37:51
Matej Blagšič
Рет қаралды 76 М.
PART I: STM32 HAL I2C and MPU6050 IMU
13:49
Steppe School
Рет қаралды 19 М.
These Illusions Fool Almost Everyone
24:55
Veritasium
Рет қаралды 2,2 МЛН
I2C introduction: The protocol
15:47
Texas Instruments
Рет қаралды 44 М.
A Beginner's Guide to Microcontrollers
15:18
Electronic Wizard
Рет қаралды 36 М.
Low cost logic analyzer
7:47
Mr.T's Design Graveyard
Рет қаралды 9 М.
STM32F4-Discovery and 2 HC-SR04 ultrasonic sensors
13:39
TalTech IoT Center
Рет қаралды 18 М.
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 17 МЛН