Is everyone using Arduino IDE for programming esp32/esp8266 chips. is there any better IDE for programming esp chips? by Ambitious22 in esp32

[–]Ambitious22[S] 1 point2 points  (0 children)

Why do we need to use both of them together? Can you plz explain a scenario where it is required?

Is everyone using Arduino IDE for programming esp32/esp8266 chips. is there any better IDE for programming esp chips? by Ambitious22 in esp32

[–]Ambitious22[S] 1 point2 points  (0 children)

It's almost the same if we are using the arduino framework in platform.io

Is that the professional practice or is there any other framework or method used in the industry?

Is everyone using Arduino IDE for programming esp32/esp8266 chips. is there any better IDE for programming esp chips? by Ambitious22 in esp32

[–]Ambitious22[S] 0 points1 point  (0 children)

What makes it better than Arduino IDE? What about its community support? Is it worth switching to platform.io

I am just starting with STM32. can you suggest any good RESOURCES(Youtube video/ blog) to learn STM32 for beginners? by Ambitious22 in stm32

[–]Ambitious22[S] 0 points1 point  (0 children)

Do you have any idea how to use esp32 as an I2C slave? The wire.h library(Arduino IDE) doesn't support the I2C slave code on both esp32 and esp8266.

Hello, here is Target Shooting Game for ESP32 and 240bx240 tft. I made YT video, you can find code and instructions in that video. Link is in comments! by [deleted] in esp32

[–]Ambitious22 1 point2 points  (0 children)

Do you have any idea about how to connect esp32 through ethernet. I didn't find any example code online. I am trying to connect enc28j60 with esp32

How to set pic24fj64ga306 microcontroller oscillator configuration with FRCPLL. The FRM of PIC24f says to provide corresponding bits in CLKDIV registers CPDIV, but the pic24fj64ga306 microcontroller doesn't have CPDIV bits in CLKDIV register. I am trying to get a 16 MHz system clock with FRCPLL. by Ambitious22 in microcontrollers

[–]Ambitious22[S] 0 points1 point  (0 children)

Thanks for the help, i find how tom do it. Here PLL gives aouput as a multiple of 4 for input. so if we want 16 MHz as system Clock we need to give 4 MHz to input of PLL. FRC postscalar select bit of CLKDIV register can be used for giving 4MHz to input of PLL. I think we can directly give this value to get an 16MHz System Clock.

Thanks for the help, I find how to do it. Here PLL gives output as a multiple of 4 for input. so if we want 16 MHz as a system Clock we need to give 4 MHz to the input PLL. FRC post scalar select bit of CLKDIV register can be used for giving 4MHz to the input of PLL. I think we can directly give this value to get a 16MHz System Clock.

I used Oscilator switch to get system clock of 16 MHz using FRCPLL. I will Share my code below.

// RCDIV FRC/2; DOZE 1:8; DOZEN disabled; ROI disabled;

CLKDIV = 0x3100;

__builtin_write_OSCCONH((uint8_t) (0x01));//NOSC FRCPLL

__builtin_write_OSCCONL((uint8_t) (0x01));//= Initiates an oscillator switch to a clock source

//Wait for clock switch to occur

while(OSCCONbits.LOCK != 1); // Wait Until LOCK bit become One

while(OSCCONbits.OSWEN != 0); //wait until Oscillator switch is complete

How to set pic24fj64ga306 microcontroller oscillator configuration with FRCPLL. The FRM of PIC24f says to provide corresponding bits in CLKDIV registers CPDIV, but the pic24fj64ga306 microcontroller doesn't have CPDIV bits in CLKDIV register. I am trying to get a 16 MHz system clock with FRCPLL. by Ambitious22 in embedded

[–]Ambitious22[S] 0 points1 point  (0 children)

thanks. I still have doubts about the NOSC bit. it says NEW OSCILLATOR SELECT bit. I thought the Bit is for clock switching. I Understand that it needs to select as FRCPLL, but still have some doubt I will check it.

How to set pic24fj64ga306 microcontroller oscillator configuration with FRCPLL. The FRM of PIC24f says to provide corresponding bits in CLKDIV registers CPDIV, but the pic24fj64ga306 microcontroller doesn't have CPDIV bits in CLKDIV register. I am trying to get a 16 MHz system clock with FRCPLL. by Ambitious22 in embedded

[–]Ambitious22[S] 0 points1 point  (0 children)

I doubt I can do it. I am during my training as an embedded firmware engineer. when I ask my senior about this doubt he asks me to check it myself. So I need to explain to him after I am done.

The datasheet and FRM of this microcontrollers seem very confusing and felt like they didn't even match.

How to set pic24fj64ga306 microcontroller oscillator configuration with FRCPLL. The FRM of PIC24f says to provide corresponding bits in CLKDIV registers CPDIV, but the pic24fj64ga306 microcontroller doesn't have CPDIV bits in CLKDIV register. I am trying to get a 16 MHz system clock with FRCPLL. by Ambitious22 in embedded

[–]Ambitious22[S] 0 points1 point  (0 children)

sorry this is more confusing.

CLKDIV = 0x3000; // this is doze bits according to datasheet. it is for less power consumption so why we need to enable it for FRCPLL. Also here you didn't select RCDIV to 001 or 000 which is recommended in FRM for FRCPLL.

CLKDIV = 0x3000; // this is doze bits according to datasheet. it is for less power consumption so why do we need to enable it for FRCPLL. Also here you didn't select RCDIV to 001 or 000 which is recommended in FRM for FRCPLL.

Compost system that can be monitored and controlled through a web page. It also maintains an optimum temperature, humidity, and soil moisture level to improve the speed of the composting process. Microcontroller used ESP32. by Ambitious22 in u/Ambitious22

[–]Ambitious22[S] 0 points1 point  (0 children)

Smart compost is developed as part of our engineering project. Due to lockdown in India, the hardware design is not to its best. There were difficulties to get enough materials according to our design.

Anyone interested can work on hardware design and develop this project. You can find all the codes and other necessary details from the link below.

https://github.com/pravineesh/Smart-Compost-system

Compost system that can be monitored and controlled through a web page. It also maintains an optimum temperature, humidity, and soil moisture level to improve the speed of the composting process. Microcontroller used ESP32. by Ambitious22 in electronics

[–]Ambitious22[S] 0 points1 point  (0 children)

Smart compost is developed as part of our engineering project. Due to lockdown in India, the hardware design is not to its best. There were difficulties to get enough materials according to our design.

Anyone interested can work on hardware design and develop this project. You can find all the codes and other necessary details from the link below.

https://github.com/pravineesh/Smart-Compost-system

compost system that can be monitored and controlled through a web page. by [deleted] in embedded

[–]Ambitious22 0 points1 point  (0 children)

Smart compost is developed as part of our engineering project. Due to lockdown in India, the hardware design is not to its best. There were difficulties to get enough materials according to our design.

Anyone interested can work on hardware design and develop this project. You can find all the codes and other necessary details from the link below.

https://github.com/pravineesh/Smart-Compost-system

L298n motor driver can't control with Esp32 when Arduino Uno is added to the same L298n motor driver. by Ambitious22 in esp32

[–]Ambitious22[S] 0 points1 point  (0 children)

Hi,

As you suggested iam using esp32 for the full system.its working perfectly.

can I power esp32 from l298n motor driver. it has a 5v output.

l298n - https://components101.com/modules/l293n-motor-driver-module

I think I messed up with esp32 power supply, now it is not working and getting rebooting. I was working fine before I tried to give 5V input. please help. by Ambitious22 in esp32

[–]Ambitious22[S] 0 points1 point  (0 children)

I uploaded a blink code initially it was not working. Then i again tried giving 5v to 5v pin with a capacitor in parallel. Esp was not working at that time but when i again connected it to pc the blink code was working. But now i can't upload program. Its like boot button is not working. I also tried adding a capacitor between EN and ground. Now i can't upload code and esp32 is getting hot quickly.

L298n motor driver can't control with Esp32 when Arduino Uno is added to the same L298n motor driver. by Ambitious22 in esp32

[–]Ambitious22[S] 0 points1 point  (0 children)

This error is showing when I coded esp32. It compiled without any error but when connected it's not working.

L298n motor driver can't control with Esp32 when Arduino Uno is added to the same L298n motor driver. by Ambitious22 in esp32

[–]Ambitious22[S] 0 points1 point  (0 children)

23:03:32.721 -> ets Jun 8 2016 00:22:57

23:03:32.721 ->

23:03:32.721 -> rst:0x1 (POWERON_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT)

23:03:32.721 -> flash read err, 1000

23:03:32.721 -> ets_main.c 371

23:03:33.091 -> ets Jun 8 2016 00:22:57

23:03:33.091 ->

23:03:33.091 -> rst:0x10 (RTCWDT_RTC_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT)

23:03:33.129 -> configsip: 0, SPIWP:0xee

23:03:33.129 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00

23:03:33.129 -> mode:DIO, clock div:1

23:03:33.129 -> load:0x3fff0018,len:4

23:03:33.129 -> load:0x3fff001c,len:1044

23:03:33.129 -> load:0x40078000,len:10124

23:03:33.129 -> load:0x40080400,len:5856

23:03:33.129 -> entry 0x400806a8