Hi @gewe, what do you want to build?
Maybe consider using Arduino as I had no troubles reading out the SHT30 on my PM2.5 with that.
Marc
Hi @gewe, what do you want to build?
Maybe consider using Arduino as I had no troubles reading out the SHT30 on my PM2.5 with that.
Marc
I am sure you found it yourself already but just for reference: https://github.com/m5stack/M5Unified
Cheers
Maybe porting your code to M5Unified would make sense then
Thanks @teastain for the hint with USB CDC on Boot!
I forgot to mention that I am on PlatformIO but the snippet shown below added to the platform.ini file helped me to solve the problem. Previously I didn't had to specify any build_flags to see the Serial output, so maybe this is a change introduced by PlatformIO.
monitor_speed = 115200
build_flags =
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
Best
Marc
Hi,
I am using M5Unified on my AtomS3 but can't get Serial.println("hello")
to show up on the host. I configured the baud rate correctly and things worked on a previous project without M5Unified on an AtomLite. I guess I am missing something obvious here.
Any help welcomed.
Marc
Alternatively - using M5Unified you can also call:
M5.Display.sleep();
To wake it up again use:
M5.Display.wakeup();
@ajb2k3 - exactly, it is the SMT32 based hub.
Thanks for sharing your experience - good to be not alone...
Thanks @felmue ,
I tried this in various variations - in setup
- in the for
loop - with and without delays - but with no effect whatsoever.
My guess is that this is an issue with the Firmware on the v1.1 version - maybe someone from M5Stack Support can confirm?
Marc
Hi @felmue ,
I am using the example you refer to but it does not work for me. I.e. any LED Unit I connect (or also the FADER Unit) - always only the first Lamp shows up.
Seems the V1.1 has an issue then and I have to buy the old Pb.Hub.. :-(.
Best
Marc
Has anyone succeeded in driving all 3 LEDs in an RGB Unit from a Pb.Hub(v1.1)?
I only ever manage to set the first LED of the RGB Unit but never the other 2. Is there a known issue in the Pb.Hub firmware?
Take a look at the data-sheet: https://www.st.com/resource/en/datasheet/vl53l0x.pdf
Table 13 shows the dependency between time budget (20ms to 200ms) for ranging and resulting accuracy.
Hi,
FYI, I built this little robot using M5Stack components like ATOM Motion, Servo Kit 360, ToF HAT and others.
See the project description here:
https://www.hackster.io/framework-labs/ego-401080
Really great how M5Stack components can be combined and used together with LEGO parts.
— Best regards
Hi Paul,
I do this on my Atom Lite:
#include <FastLED.h>
CRGB mainLED;
void setup() {
M5.begin();
FastLED.addLeds<NEOPIXEL, 27>(&mainLED, 1);
FastLED.setBrightness(10);
}
And then in loop to set the color I use:
mainLED = CRGB::Red;
FastLED.show();
Hope that is of any help.
-- Marc
Hi,
this PlatformIO project turns your M5StickC into a laser rangefinder.
For this you need to attach the ToF HAT to your M5StickC.
Happy range-finding!