MartinNohr / MagicImageWand

Paints Images in the Air with LEDs
Apache License 2.0
20 stars 6 forks source link

M5 Core2 Port #35

Open MartinNohr opened 3 years ago

MartinNohr commented 3 years ago

It would be interesting and useful to port the code to run on the M5 Core2 system.

Originally posted by @MartinNohr in https://github.com/MartinNohr/MagicImageWand/issues/1#issuecomment-770267243

MartinNohr commented 3 years ago

I have an M5 Core2 now. I'll port the code as soon as I have some free time. The M5 is a very nice device.

MartinNohr commented 3 years ago

I almost have the port to the M5 working. I'll create a new github entry for it as soon as I'm satisfied. It was a bit of work, the screen is different and I decided to enable touch detection. The touch detection isn't great, the screen is small, but it does work. It might be good to still use the dial, it is in many ways easier to use, especially with gloves on or fat fingers. I'm thinking of using the level sensor on the M5 to show if you're holding the wand level! I might even use it so you can shake the wand to start it playing.

MartinNohr commented 3 years ago

I'm not finding the touch screen on the core2 to be very reliable or useful. So I have ported the code to the original M5Stack with 3 physical buttons. This is proving to be quite good. I'll post the code when enough of it is working and put a link here.

MartinNohr commented 3 years ago

The M5Stack Core version is just about ready. I added an interesting level feature that uses the orientation sensor on the Grey version to indicate if the wand is being held level and straight.

dirkessl commented 3 years ago

That is awesome news, it would make it possible to make a MIW without any soldering (when skipping the rotary dial) as it has enough connectors free to plug the LED strip and the rotary dial, making it very easy for even more people building one. I have the older version without the touchscreen and use it as a timer and absolutely love it.

MartinNohr commented 3 years ago

https://github.com/MartinNohr/MagicImageWand-M5Stack/tree/master Macros aren't working yet, and the calibration for the level sensor is hard-coded. Please try the code. There is some soldering, but not much. The display is beautiful. I'll add some pictures of the wiring harness that I made.

MartinNohr commented 3 years ago

I haven't put the rotary dial in yet. Also, I think the M5 SD code only handles <=32G cards.

MartinNohr commented 3 years ago

I made a mistake. The link I sent you above was for the M5 Stack new version with the touch screen. I didn't like it and never finished it. Here is the one for the original M5 Stack with the 3 buttons. It is the grey version, but might work on the white one also. https://github.com/MartinNohr/MagicImageWand-M5StackGray