Тёмный

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

Mutex Embedded
Подписаться 22 тыс.
Просмотров 56 тыс.
50% 1

Наука

Опубликовано:

 

2 фев 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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.
@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
@ismailsapmaz381
@ismailsapmaz381 3 года назад
great video from great man . Thank you Sir
@joepighetti911
@joepighetti911 4 года назад
Thanks Mohammed! Spot on!
@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 года назад
:)
@shrikantvaishnav1077
@shrikantvaishnav1077 3 года назад
Very helpful sir thanks👍👍
@muhandes8453
@muhandes8453 2 года назад
I will be very happy if you make another series for STM32 :)
@post2pa
@post2pa 5 лет назад
Good job, very helpful, many thanks.
@mutexembedded2206
@mutexembedded2206 5 лет назад
Cheers
@mohamadali6174
@mohamadali6174 5 лет назад
Good job 👍
@mehmetdemir5655
@mehmetdemir5655 2 года назад
Thanks man🙏🏻
@onszerai755
@onszerai755 3 года назад
Thanks
@joeltshiela4605
@joeltshiela4605 9 месяцев назад
thanks
@asimabdulqayyum3360
@asimabdulqayyum3360 5 лет назад
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.
@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.
@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?
@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?
@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
@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.
@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
@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.
@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, 😊
@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
@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
Далее
Using I2C for any device on STM32 with HAL | VIDEO 26
37:51
▼ЕГО БОЯЛИСЬ МОНГОЛЫ 🍣
32:51
Просмотров 325 тыс.
Boots on point 👢
00:24
Просмотров 5 млн
I2C introduction: The protocol
15:47
Просмотров 42 тыс.
Low cost logic analyzer
7:47
Просмотров 8 тыс.
Simulating the Evolution of Rock, Paper, Scissors
15:00
ЗАКОПАЛ НОВЫЙ ТЕЛЕФОН!!!🎁😱
0:28