Martin,
Gosh, you didn't waste time implementing the suggestion. Programming is a mystery to me.
ATtiny85 GG decoder - DIY thread
- Wayne_H
- Posts: 811
- Joined: 17 Feb 2018, 05:26
- Location: Temora, NSW. Australia
- Contact:
Re: ATtiny85 GG decoder - DIY thread
Interesting alternative The vid gives a great explanation of the effects of varying the drive time.
oh brother, I hear you
I managed to 'borrow' a few hours during the week to do some experiments with the DIY sketch and 2 different ATtiny85 boards and 2 cheap H-Bridge boards off the Bay. These are the boards: One ATtiny board is the DigiSpark with the USB tab removed (as per Phil's post) & the other is a slightly different configuration with a micro-USB socket fitted. I had an oops moment when sawing off the USB tab - the saw slipped & knicked the board cutting a track but fortunately I was able to repair it. Note that the spacing between the power pins & the P0-P5 pins is different between these 2 boards - this prompted me to modify my ATtiny85 ICSP programming board to accommodate both types, thus: The two H-Bridge boards have similar specs, the blue board is smaller & costs a few more cents, but neither is expensive! The physical configuration is different and the labeling is subtly different too, as evident in the pictures.
The sketch had to be modified as per the instructions Martin included in his sketch
so,// leave #define in place for L9110(S) and other H-bridges that have active low inputs. Comment out for MX1508, L298 and other H-bridges with active high inputs
was changed to// #define L9110
and all was working as it should.#define L9110
For my experiments, I made up a board with sockets & pin headers, so all 4 boards could be easily inserted/removed to test all combinations.
The ATtiny boards had sockets fitted so that I could plug them onto my ICSP programming board if code changes were needed. Once I found the one (of course ) bridged solder joint (suitably & colourfully cursed, of course ) all worked as it should, on 3 different motor+g/box combinations.
My assembled boards from Martin arrived yesterday, but they'll have to wait until next week .
Thanks Martin for another great project
Cheers,
Wayne
Once a Retrobate, always a Retrobate............
Wayne
Once a Retrobate, always a Retrobate............