MartinNohr / LedImagePainter

New ESP32 version using rotary push button switch.
2 stars 1 forks source link

Accelerometer #33

Open breakingcraft opened 1 year ago

breakingcraft commented 1 year ago

Would it be possible to add an accelerometer to print the image instead of using a Fixed Frame Time? Like the MPU-6050. As you are slower to move in the beginning of the picture it can make pictures very distorted in the start, the faster the acceleration gets the faster the next frame will print. So technically you could stop in the middle of the picture and then walk again and it would show even frames throughout the whole picture.

MartinNohr commented 1 year ago

Excellent idea! And I have even already been thinking about it. I have a model working here that shows what angle you're holding the wand at. I haven't added any code to do what you are suggesting but that is a great idea. I am redesigning the PCB and I think I will add the MPU-6050 to it. I'm also switching to an ESP32 TTGO that has a larger display. No promise on the deadline though. :-( BTW, the only version under current development is the "MagicImageWand" version. I haven't done anything to this one for several years. Check out the new one, it is much more advanced now!

MartinNohr commented 1 year ago

One more thing I added to the new code in "MagicImageWand" is support for an encoder wheel that you can roll on the ground. The frame advancing is controlled by pulses from the encoder. It solves the same problem in a different way. Unfortunately, the code is done, but I haven't finished the design of the wheel yet.

breakingcraft commented 1 year ago

Good to know which version of MagicImageWand you are development, it was a bit confusing to know where to comment. I really like the ESP32 TTGO, keep up the good work! I will try out the encoder part.

MartinNohr commented 1 year ago

I have tested the code by grounding the wire a few times. It advances one frame each time so it should work with an encoder wheel. I'm also getting the code to work on the new ttgo s3, larger display!

MartinNohr commented 1 year ago

I think I'll add an accelerometer to the new board design I'm working on. The MPU6050 has been deprecated, but there are several newer designs to choose from. I have to do a new board design anyway to support the new TTGO S3.