@k05007 ESP32 is the microcontroller chip in all M5Stack controllers.
"M5StickCPlus2" is the board definition. You could program that board as ESP32 but it would require a ton of support libraries, just not worth it.
Using the M5StickCPlus2 library makes it easier to use in Arduino IDE .
In Arduino IDE choose M5StickCPlus2 in the communication window
teastain
@teastain
Retired Industrial Robotics interface designer, bon vivant, raconteur, maker.
Posts made by teastain
-
RE: Help on M5STICKS plus.
-
RE: M5Stack Dial CAN Arduino Library
@jonsar JST 2.0 connectors, commonly called 'Grove' and available through M5Stack!
-
RE: ATOMIC Stepmotor Base (DRV8825) Example Doesn't Work...
@cairnus how to mark text as code:
Start a blank line with three back-quotes ` (upper left of the keyboard, below the tilde)#include <AccelStepper.h> int pin_en = 5; int pin_direction = 7; int pin_step = 6; int pin_reset = 39; int pin_voltage = 8; int pin_fault = 38; int microstep = 1;
end with a blank line and three back-quotes as well.
cheers! -
RE: UnitCamS3 Trouble programming in Arduino IDE and getting 2mp image
@ajb2k3 Sure, here it is:
Here is the full example for all ESP32s using the OV2640 camera in Arduino IDE
(in the IDE board selection choose M5Stack UnitCamS3)
Remember to edit the .ino file to include your WiFi credentials!The full sketch is here:
https://github.com/espressif/arduino-esp32/tree/cf448906b3836fbe9368934713b697469254c62f/libraries/ESP32/examples/Camera/CameraWebServerYou can choose CAMERA_MODEL_ESP_EYE, and apply a little tweak in camera_pins.h like this:
https://github.com/m5stack/UnitCamS3-UserDemo/blob/main/firmware/src/hal/cam/camera_pins.h#L21Also in the library used in your sketch
app_httpd.cpp
I had to change Line 77 from ('1" enabled) to ('0' not enabled )#define CONFIG_LED_ILLUMINATOR_ENABLED 0
Successful upload serial output reads like this:
20:48:24.952 -> E (516) esp_core_dump_flash: No core dump partition found! 20:48:24.952 -> 20:48:24.952 -> ...... 20:48:24.952 -> WiFi connected 20:48:24.952 -> Camera Ready! Use 'http://192.168.0.37' to connect
-
RE: UnitCamS3 Trouble programming in Arduino IDE and getting 2mp image
@teastain I made an #Issue on the GitHub repository and got patient, expert advice on how to edit the libraries and select the options in the .ino sketch!
Got it working! -
RE: [Product Revision] Tube/Air Pressure Unit with I2C
@maethaxi Good info!
The Adafruit must be an older design, as the I2C pins are not in the Grove signal order and would require cutting the end from a Grove cable and crossing wires and soldering!
The Sparkfun unit is 'micro-grove' JST 1.0mm but wired correctly for grove. You would need a JST 2.0 (Grove) to JST 1.0 (qwiic) adapter cable. Mine is homemade but opens up another world of sensors to my faithful M5Stack equipment!
added:
Sparkfun qwiic to Grove converter cable
https://www.sparkfun.com/products/15109 -
UnitCamS3 Trouble programming in Arduino IDE and getting 2mp image
I just received my new UnitCamS3 and I was dissatisfied with the built in app, so I tried to program it in Arduino IDE.
(The camera only showed a series of lo-res images of an increasingly perplexed and annoyed old man)
The specs say 2 megapixel, but the supplied app is only 640x480 (0.3 megapixel).
I cannot find an Arduino sketch that will compile and run and output a 2mp image.
The demo firmware is written for Platformio and I am not interested in installing that and the learning curve.
Is it possible to program with Arduino IDE and achieve 2mp? -
RE: New Core2 not turning on
@rikarddoms What firmware did you try to burn? What program language IDE are you using?
-
RE: M5 Dial Port B both Pins needed to be outputs
@felmue Yes! That's it!
GI vs G1!!!
Thanks. -
RE: M5 Dial Port B both Pins needed to be outputs
@felmue I have been following this issue for a week or so and trying to figure it out.
I see three things in the documentation that don't make sense, both Dial and DIN Meter.
I still have the cute Demo sketches running and have not tried this myself, but it looks confusing?