Arduino
- Started
- Last post
- 108 Responses
- scarabin0
- https://www.arduino.…uan
- ^^^ yep, all you need is the ATmega chip.section_014
- that's what i was thinking. this thing is cute, thoughscarabin
- nice bug indeed. depending on the project, a ATtiny45 or 85 is all you need: http://highlowtech.o…uan
- GeorgesII2
SO COOL!!!
- Centigrade0
Just started with Ardunio. Working on a USB project using a cheapo Pro Micro.
Just running into a Rotary Encoder issue. Trying to find good clean code examples for long click + rotate. Any one got good resources?
- can't help but feel for you... rotary encoders can be a a nightmare to debug. check your wires :-Dkingsteven
- Turboslacker0
Just got a starter kit from elegoo. Much easier than I thought it would be. How is your LED project coming?
- Centigrade1
So I've built a prototype whereby I have a rotary encoder (twisty knob!) which controls the brush size. However I'm stuck with Photoshops pre-defined increments as I'm firing the [ ] shortcut keys - this is less than ideal. I've seen the fancy-pants hardware like Palette Gear which seems to be able to change the brush size by 1px increments. Presumably they are using some scripting language to interface with Photoshop? Or did Adobe give them access to some under-the-hood stuff? Or is this something else?
My guesses:
Hardware Signal -> Arduino Script -> MIDI -> PS
Hardware Signal -> Arduino Script -> Javascript (somehow?) -> PS ScriptNo idea how to get to the next level on this project. Any ideas?
- Do you not need to use the API for finegrain control?
https://www.adobe.io…Nairn - https://www.adobe.io…Nairn
- As far as I can see that API is for working with Sensei or scripts on their servers. I'd need a direct pipeline into Photoshop.Centigrade
- They do have some info on this... I'm just not sure where to start.
https://helpx.adobe.…Centigrade - The native handling actually makes a lot of sense at various sizes. You always have 10 steps dividing each numerical position.monNom
- Once you get up to the hundred or thousand brush size, you don't want to have to click one thousand times to get to the next largest size.monNom
- so you almost need to have two speeds on your encoder to make it usable for quick changes, but also fine adjustment... that might be asking a lot.monNom
- Also: Alt + RMB + mouse left/right will scale the brush size proportional to the mouse move, so that might be a place to look.monNom
- I could program the encoder to "ramp up" to speak. But I'd need to be able to grab the current brush sizeCentigrade
- That's where I'd need the "listening" and interacting with PS. And that's the part I'm stuck at.Centigrade
- does the encoder have a press as well? You could press to simulate ALT+RMB, then rotation adjusts pointer location left/right. Press again to confirm. ?monNom
- presumably you'll need to pretend to be a mouse with some kind of HID driver. This is probably windows level, not photoshop.monNom
- If this is just for you, you could take apart an old ball mouse as they have two wheels that control x and y pointer. Just manually turn that wheel to adjust.monNom
- Do you not need to use the API for finegrain control?