![MicroPeta by Nizar Mohideen](/img/default-banner.jpg)
- Видео 130
- Просмотров 1 012 364
MicroPeta by Nizar Mohideen
Австралия
Добавлен 29 апр 2021
Production works such as agriculture or manufacturing can be improved by collecting daily data from the process, storing into a database and analysing it to get performance indicators. This can be achieved by using sensors to measure weight, distance, length, volume and counts etc.. Measured values can be transmitted via wired or wireless to a central database using micro-controllers and transmission modules such as WiFi, LoRa or SIM modules.
I am going to share some knowledge I acquired in the field of C/C++, Electronics, STM32, ESP32, JavaScript, PHP, MySQL and much more. I try my best to show from the beginner level. If any questions please write in the comments section.
I am going to share some knowledge I acquired in the field of C/C++, Electronics, STM32, ESP32, JavaScript, PHP, MySQL and much more. I try my best to show from the beginner level. If any questions please write in the comments section.
130. Send data from PC to STM32 via USB CDC with STM32 F103C8T6
Blink LED via USB Port without UART or USB to TTL
Send data from STM32 to PC via USB video is ruclips.net/video/iYvUzxABmTk/видео.html
Code and diagram are at www.micropeta.com/video130
Send data from STM32 to PC via USB video is ruclips.net/video/iYvUzxABmTk/видео.html
Code and diagram are at www.micropeta.com/video130
Просмотров: 232
Видео
129. Install STM32 DFU Bootloader. Program STM32F103C8 via USB Port
Просмотров 78319 часов назад
Can program from CubeIDE using CubeProgrammer also Arduino IDE No more ST-Link or UART USB to TTL Can use USB CDC for serial monitor Device Firmware Update (DFU) * Need ST-Link or USB to TTL only one time for bootloader installation If it dows not upload, use 2k resistor between pin PA12 and 3.3V Install CubeProgrammer video ruclips.net/video/YocudAJBH-g/видео.html Bootloader bin file github.co...
128. STM32CubeIDE Multiple 74HC595 8-Bit Shift Registers with STM32 F103C8T6
Просмотров 364День назад
Get up to 32 GPO Output pins from only 3 GPIO pins Video about only one 74HC595 is here ruclips.net/video/B6clX53NbsE/видео.html Code and Instructions are at www.micropeta.com/video128
127. STM32CubeIDE Seven segment display via 74HC595 8-Bit Shift Registers with STM32 F103C8T6
Просмотров 29214 дней назад
Video about getting additional output pins using any three pins is here ruclips.net/video/B6clX53NbsE/видео.html Code and Instructions are at www.micropeta.com/video127
126. STM32CubeIDE 74HC595 8-Bit Shift Registers with STM32 F103C8T6
Просмотров 48014 дней назад
Get additional output pins using any three pins Code and Instructions are at www.micropeta.com/video126
125. STM32CubeIDE LCD 1602 I2C Display with STM32F030F4P6
Просмотров 369Месяц назад
Library without DWT using timer micro second delay Code and diagram are at www.micropeta.com/video125
124. STM32CubeIDE ADS1115 ADC with STM32 F103C8T6
Просмотров 997Месяц назад
Get precise voltage from 4 Channel 16-Bit ADC Code and Instructions are at www.micropeta.com/video124
123. STM32CubeIDE DAC with Nucleo STM32 F446RE
Просмотров 510Месяц назад
Generate 1 Volt, 2V and 3V DC. Also generate Sawtooth, triangle and sine waves Code and diagram are at www.micropeta.com/video123
122. STM32CubeIDE NEO-6M GPS with STM32F103C8T6
Просмотров 474Месяц назад
Validate, parse and get google coordinates Code and Instructions are at www.micropeta.com/video122
121. NEO-6M GPS and LoRa live location map
Просмотров 234Месяц назад
Track items without microcontrollers or mobile networks RF setting video ruclips.net/video/6vIYaawRQ2g/видео.html U-CENTER 2 installation video ruclips.net/video/lWRDBrNiM7k/видео.html
120. NEO-6M GPS live location map with U-CENTER 2
Просмотров 214Месяц назад
U-CENTER has live map with speed, time, google coordinates and much more software link www.u-blox.com/en/product/u-center
119. STM32CubeIDE Camera. OV7670 with STM32F407VET6
Просмотров 759Месяц назад
Capture and playback to TFT display using STM32 Library github.com/iwatake2222/DigitalCamera_STM32 Code and Instructions are at www.micropeta.com/video119
118. STM32CubeIDE I2S. INMP441 with STM32 F446RE Nucleo
Просмотров 760Месяц назад
Record sound from microphone and playback to speaker using STM32 Details of MAX98357A is here ruclips.net/video/kMVNKttrlmg/видео.html Code and diagram are at www.micropeta.com/video118
117. STM32CubeIDE I2S. MAX98357A with STM32 F446RE Nucleo
Просмотров 1,1 тыс.2 месяца назад
Play sound from memory to speaker using STM32 Code and diagram are at www.micropeta.com/video117
116. STM32CubeIDE L298N Motor. PWM with STM32 F446RE Nucleo
Просмотров 7362 месяца назад
Code and diagram are at www.micropeta.com/video116 L298N Datasheet www.st.com/resource/en/datasheet/l298.pdf STM32F446RE Datasheet www.st.com/resource/en/datasheet/stm32f446re.pdf
115. STM32CubeIDE MCP2551 CAN BUS with STM32 F103C8T6
Просмотров 2,8 тыс.2 месяца назад
115. STM32CubeIDE MCP2551 CAN BUS with STM32 F103C8T6
114. STM32CubeIDE TCS34725 RGB Color Sensor with STM32 F103C8T6
Просмотров 7292 месяца назад
114. STM32CubeIDE TCS34725 RGB Color Sensor with STM32 F103C8T6
113. STM32CubeIDE PCA9685 PWM Servo Driver with STM32 F103C8T6
Просмотров 9962 месяца назад
113. STM32CubeIDE PCA9685 PWM Servo Driver with STM32 F103C8T6
112. STM32CubeIDE Multiple Servo Motors. PWM with STM32 F103C8T6
Просмотров 9713 месяца назад
112. STM32CubeIDE Multiple Servo Motors. PWM with STM32 F103C8T6
111. PCF8574 I/O Expander with STM32 F103C8T6 STM32CubeIDE
Просмотров 5683 месяца назад
111. PCF8574 I/O Expander with STM32 F103C8T6 STM32CubeIDE
110. TCA9548A I2C Multiplexer with STM32 F103C8T6 STM32CubeIDE
Просмотров 7033 месяца назад
110. TCA9548A I2C Multiplexer with STM32 F103C8T6 STM32CubeIDE
109. Ethernet W5500 web server with STM32 F103C8T6 STM32CubeIDE
Просмотров 2,4 тыс.3 месяца назад
109. Ethernet W5500 web server with STM32 F103C8T6 STM32CubeIDE
108. STM32CubeIDE HX711 with a Four Wire Load Cell and STM32 F103C8T6
Просмотров 1,9 тыс.3 месяца назад
108. STM32CubeIDE HX711 with a Four Wire Load Cell and STM32 F103C8T6
107. STM32CubeIDE L298N & NEMA 17 Stepper Motor with STM32F103C8T6
Просмотров 7303 месяца назад
107. STM32CubeIDE L298N & NEMA 17 Stepper Motor with STM32F103C8T6
106. STM32CubeIDE ESP 01 Module to Thingspeak with STM32F103C8T6
Просмотров 8893 месяца назад
106. STM32CubeIDE ESP 01 Module to Thingspeak with STM32F103C8T6
105. STM32CubeIDE ESP 01 Module with STM32F103C8T6
Просмотров 1,4 тыс.3 месяца назад
105. STM32CubeIDE ESP 01 Module with STM32F103C8T6
104. ESP-01 Install firmware - Factory Reset - Bootloader Repair
Просмотров 9753 месяца назад
104. ESP-01 Install firmware - Factory Reset - Bootloader Repair
103. STM32CubeIDE I2C Scanner for STM32
Просмотров 8843 месяца назад
103. STM32CubeIDE I2C Scanner for STM32
102. STM32CubeIDE Servo Motor. PWM with STM32F446RE Nucleo
Просмотров 2,5 тыс.4 месяца назад
102. STM32CubeIDE Servo Motor. PWM with STM32F446RE Nucleo
101. Install keil uvision 5 with CubeMX and blink STM32 LED
Просмотров 1,1 тыс.4 месяца назад
101. Install keil uvision 5 with CubeMX and blink STM32 LED
sir i didn't get the value ! where the function HAL_GPIO_EXTI_Callback calls ?
HAL_GPIO_EXTI_Callback does not calls any function. Whenever pin PB11 goes from high to low, the function HAL_GPIO_EXTI_Callback is executed
Is it possible to make a video explaining the temperature sensor? PT100
❤ excellent ❤
Very good
Hi Why uart sends data reversed For example If I want to send 1139(ascii) = 0473(hex) When uart sends data i have 7304(hex) in my computer How I can prevent this?
uart sends one byte a time. that means 8 bits if you want different size data to send break them into 8 bit pieces and reconstruct at the receiver end for example if you want to sent 16 bit number to send as you have shown, you can follow as shown below uint16_t toWrite; uint8_t Broken1; uint8_t Broken2; Broken1 = toWrite & 0xff; Broken2 = toWrite >> 8; uint16_t Reconstructed; Reconstructed = ((uint16_t)Broken2 << 8) | Broken1;
@@NizarMohideen very useful thanks👍👍
Thanks for the tutorials sir 🎉very useful.
why i cant get date? thanks Sir
You can set sate. You can get date RTC_DateTypeDef gDate; HAL_RTC_GetDate(&hrtc, &gDate, RTC_FORMAT_BIN);
@@NizarMohideen when I set the date it works, and when it starts without setup, why can't it? the result is day 0, month 1, date 1, year 0
@@NizarMohideen it keeps only time not date, can you help me? thanks
Do the similar things to date initialization as you done for the time code from second and subsequent uploads That is to comment out the date code except for the first upload
w5500 used to FOTA update is possible or not ??
I don't know
Hello, how much maximum the sensor can read the distance?
400 cm as in www.sparkfun.com/products/15569
Can you make a video how to control three leds? Thank you sir
thanks sir
I am using stm32f103c6t6. When i connect it to pc it is showing usb device not recognised. Can you make a video to fix this issue
I am sorry to say that this bootloader did not work with stm32f103c6 I have tested with many stm32f103c8 and all worked including clone chips I believe the souce code can be modified and complied to work with stm32f103c6 If I have time to modify it or if I find another bootloader for stm32f103c6, I will let you know Thanks
Without downloading bootloader , When i connect usb cable pc is showing that usb is not recognised
usb will not be recognised until bootloader download. Even after bootloader download, usb will not be recognised. You need to press the reset button in the stm32f103c8 bluepill, then usb will be available
Sir do you have some e-mail i need your help. Thank you very much
❤❤❤❤❤❤❤❤
STM32CubeProgrammer install and code upload video video ruclips.net/video/YocudAJBH-g/видео.html
Congregation ..we need that🎉
Love your series sir Please make a series on stm8 microcontrollers
That was great, thanks a lot !✨
ya estoy viejo para aprender pero en ocasiones por necesida necesito hacer cosas que no existen en mi pais o son muy cara y como siempre he sido fan a la electrinica, al diseño y mas. te doy gracias por cualquier aporte que hagas a la comunidad. saludos.
🎉🎉🎉
Hello you! Can you make a video about modbus rs485 ?
Sir can we use the hex file from STM32CubeIDE to load it to the MCU via st2 linker with ST LINK V2 UTILITY software. No need to use STMCubeProgrammer. thank you
Yes. You can. But ST-LINK utility - OLD Version STM32CubeProgrammer - NEW Version
You can upload the code straight from CubeIDE to STM32 without using ST-LINK utility or STMCubeProgrammer
@@NizarMohideen appreciate you sir
Work on STM32F103C6 ??? Please answer
Yes. It will work with the same CubeIDE setup and codes. You can use stm32f103c6 for both modules Or you can use stm32f103c6 for one module and stm32f103c8 for other module
i am trying to implement this using static ip adress method please can you help??????
how to contol this motor using joystic or bluetooth or anthing else please let me know
Joystick only ruclips.net/video/NEUtfDNfIKk/видео.html Potentiometer only ruclips.net/video/Lot5CjxMmsk/видео.html Joystick with motor ruclips.net/video/0rbKmkNEdAU/видео.html
Amazing. Could you show us how to use a WWVB Atomic Clock Receiver Module?
I think it is the same module as the DCF77
Thank you for this video. Can you create video for downloading the code using bootloader (i mean using USB cable)
Good News ... My next video will be about downloading the code using DFU bootloader (via USB cable only)
Done. Video link ruclips.net/video/ReSaV4y2XSA/видео.html
❤This is amazing . I learned a lot from you. Please make two or three pieces 74ch595❤
Multiple 74HC595 Shift Registers with STM32 done Link --> ruclips.net/video/XLJzC3ukmAs/видео.html
Thank you sir. Is it possible to make it with 3- 7 segmant
Of course, it is possible. It is also very simple. Just replace the 7-segment in the place of led and switch on and off the pattern. Because it is simple, I don’t want to repeat the video recordings, besides I don’t have three displays with me. Thanks
thank you sir.
Hi there I am using sensor as an input which will turn on the buzzer, and also using EXTERNAL interupt Buthon the to turn off the buzzer and turn on the LED but the code is not working. It is like when I siply power it only do one tast only butten not buzzer and also sensor stop working need help with example
I suggest make project for TM6932 16 digit driver...this driver is very useful for any LED driver ...thanks
Really well done..
Good job, thank you.
Excellent 🎉
please make video using the stm32l475vgt6 board for motor driver
I do not have stm32l475vgt6 with me But I have done this motor and l298n with stm32f446re and stm32f103c8 the link is ruclips.net/video/0rbKmkNEdAU/видео.html you can compare both and you may be able to do the same with any stm32 by yourself
Works very bad and unstable. Sometimes it's ok, sometimes the LED returns to the previous state after button release.
I have used 10 milli seconds to ignore debounce interrupts If the push button is not smooth, you may need to increase the time if (GPIO_Pin == GPIO_PIN_1 && (currentMillis - previousMillis > 10)) ^^^
@@NizarMohideen I've already tried to set 50ms, but it doesn't help. Also, it's not a button problem. The same button works flawlessly with 50ms debouncing delay in my PIC code. But I'm new to STM32 and can't make it work yet.
I will search for better way of doing with interrupt service routine. If anything better, I will let you know. In the mean time, you can also search for isr documents in the net. Thanks
Very useful 🎉
Hello! Answer please. Can we change timer settings during programm is running? i am considering Car engine manegment system, rotating trigger wheel on crankshaft makes interrupt every 6 degrees. we need to ignite sparks when trigger wheel interrupts + some amount of time. this amount of time alway differ and depends on a lot of parametrs.
Yes. You can HAL_TIM_Base_Stop_IT(&htim2); // During prorram running change the values inside MX_TIM2_Init() MX_TIM2_Init(); HAL_TIM_Base_Start_IT(&htim2);
@@NizarMohideen thank you, awesome. i will try it.
Were good 👍
thanks for your tutorial nizar, btw, could you make the tutorial of rotary encoder with obstacle sensor module using STM32F103C8T6?
If i open another TIM channel how to have another value rx_data to control second led ? HAL_UART_Receive_IT(&huart1,&rx_data,1);
sir are there any way to debug clone f103 over cube mx
OpenOCD used to work but it does not work any more. I have not found anything else so far
htim4.Init.Prescaler = 72-1; htim4.Init.CounterMode = TIM_COUNTERMODE_UP; htim4.Init.Period = (72000000 / (72 * pwm_frequency)) - 1; sConfigOC.OCMode = TIM_OCMODE_PWM1; sConfigOC.Pulse =(htim4.Init.Period*0.1); sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; i used pwm channel 1 for step signal. i did like this and worked quite well. But when i looked at the internet i couldn't found like my solituon. i wonder mine is wrong or something?
The timer used in this example is for micro-second delay. As long as you get 1us, it should be ok
Can we implement this using nb-iot communication?
Hello, in which part of the code do we make the parameter settings of Lora?
the parameter settings of Lora is not in this video. I have a separate video for settings ruclips.net/video/6vIYaawRQ2g/видео.html
@@NizarMohideen Thanks for your answer. I can adjust the parameter settings of the lora with the RF Settings application, but I do not know how to use these parameter settings when writing code. "#include <SoftwareSerial.h> SoftwareSerial FixSerial(3, 4); #define M0 7 #define M1 6 void setup() { Serial.begin(115200); pinMode(M0, OUTPUT); pinMode(M1, OUTPUT); digitalWrite(M0, LOW); digitalWrite(M1, LOW); FixSerial.begin(9600); } void loop() { FixSerial.write((byte)0x00); //Receiver Address HIGH FixSerial.write(3); //Receiver Address LOW FixSerial.write(18); //Receiver Channel =0x17=23 (410M+23=433 MHz) intSend(12345); // We will send this number -> delay(1000); } void intSend(int number) { FixSerial.write(highByte (number)); FixSerial.write(lowByte (number)); }" I used parameter settings like this with Arduino, but I have no idea how to do it with CubeIDE. Can you help me with this?
It is possible. But I have not done it with stm32. Thanks
Many thanks for these videos. Just setting up my workstation to work with some old boards I have again. And have a bunch more coming in the post. Excited to get back into this
Thankyou this is an extremely helpful video :)
Hello i added photo resistor and 220 omh resistor like in your schematic,but when i use debug mode and add readValue to watch it says 15833 ushort and dont change on light passing by why ?
ADC Prescaler is set to /6 and 12 to ADC 1,2
I have noted that it does not update for some stm32 chips. If so, you can try stopping and restating adc for each readings as shown below HAL_ADC_Start(&hadc1); HAL_ADC_PollForConversion(&hadc1,1000); readValue = HAL_ADC_GetValue(&hadc1); HAL_ADC_Stop(&hadc1); Thanks
@@NizarMohideen Still not working here is my code privnote.com/nfYJT7Rj#Bfh1nZfTf
I have seen your code. It has DHT11, light sensor and UART Interrupt input. It would be easier for you to test light sensor only and make sure it gets the ADC values. Make it simple and remove everything except light sensor then combine with other elements. Good luck
how to calibrate,any video link
I have calibrated only zero ampere point. We have to calibrated at several points until rated 30 ampere We need variable load to produce variable high currents. Even 20A/ 5V produce 100W and the load I had can not handle the heat for few seconds. So for many beginner students don’t have the facility to calibrate at home If they wanted so precise measurements then they should contact current calibrating people. Thanks
Thank you for posting this tutorial so helpful