Search found 13 matches

by metri
Wed May 13, 2020 10:27 pm
Forum: MicroPython pyboard
Topic: Timer.ENC_AB Example?
Replies: 2
Views: 411

Re: Timer.ENC_AB Example?

Thanks so much! That will get me going.

Brian
by metri
Wed May 13, 2020 2:09 pm
Forum: MicroPython pyboard
Topic: Timer.ENC_AB Example?
Replies: 2
Views: 411

Timer.ENC_AB Example?

Does anyone have a really quick example of how to use Timer.ENC_AB? I'm confused by the documentation is a few places. 1. I don't understand how to configure the Timer object. Timer.channel? 2. I don't understand how to configure the Pin to use an alternate function 3. Related to 1, I need a callbac...
by metri
Sun May 10, 2020 2:30 am
Forum: Hardware Projects
Topic: pyBoard compatible E-Bike Computer - The pyEC
Replies: 14
Views: 3362

Re: pyBoard compatible E-Bike Computer - The pyEC

That's great info thanks! For now I'm not controlling throttle with the pyEC, though I would like to in the future. These standards represent best practice but I wonder how general hover boards, electric unicycles and ebikes are designed where safety is concerned. I'm not suggesting cutting corners,...
by metri
Tue Mar 03, 2020 12:37 pm
Forum: Hardware Projects
Topic: pyBoard compatible E-Bike Computer - The pyEC
Replies: 14
Views: 3362

Re: pyBoard compatible E-Bike Computer - The pyEC

Would I want to trust my life to a PWM controller of unknown origin?? Thanks so much for the detailed reply. I had few thoughts to add. There are several kinds of processor problems I can think of, one is undesired code and another is a real crash. In my motor controller, there is no backup process...
by metri
Sun Mar 01, 2020 1:43 pm
Forum: Hardware Projects
Topic: pyBoard compatible E-Bike Computer - The pyEC
Replies: 14
Views: 3362

Re: pyBoard compatible E-Bike Computer - The pyEC

...Brakes need to be able to hold back engine at full power... At risk of stating the obvious the engine powers the back wheel but the brake which does all the work is on the front. I don't know how powerful your machine is; FWIW I rode high mileages on ~100bhp bikes. Using the brakes to control th...
by metri
Sat Feb 29, 2020 3:45 pm
Forum: Hardware Projects
Topic: pyBoard compatible E-Bike Computer - The pyEC
Replies: 14
Views: 3362

Re: pyBoard compatible E-Bike Computer - The pyEC

I can use the IMU input to detect the front wheel lifting and cut the throttle If the thing can control the throttle of a powerful bike I'd worry about safety. If the processor crashes, so might you. Very true, and for this reason I have yet to do it. At the very minimum you need a watchdog timer, ...
by metri
Wed Feb 26, 2020 1:57 pm
Forum: Hardware Projects
Topic: pyBoard compatible E-Bike Computer - The pyEC
Replies: 14
Views: 3362

Re: pyBoard compatible E-Bike Computer - The pyEC

Can you elaborate a bit on how this works together with an e-bike? Can you plug it into any bike etc? Sure, at it's core it's a general purpose development board with many optional expansion boards. I've put a lot of the details on my website, link above, but I'll summarize here. Perhaps it's best ...
by metri
Tue Feb 25, 2020 12:50 pm
Forum: Hardware Projects
Topic: pyBoard compatible E-Bike Computer - The pyEC
Replies: 14
Views: 3362

Re: pyBoard compatible E-Bike Computer - The pyEC

Thanks, it was a fair bit of work, however laying out circuit boards is also a lot of fun. It's also related to my E-Bike (electric motorcycle really) and that is also something I love working on. I'm hoping to find some other people that would also like to use it. If anyone wants more info or desig...
by metri
Mon Feb 24, 2020 1:08 pm
Forum: Hardware Projects
Topic: pyBoard compatible E-Bike Computer - The pyEC
Replies: 14
Views: 3362

pyBoard compatible E-Bike Computer - The pyEC

The pyEC is a pyBoard compatible multipurpose board capable of talking with just about anything on your E-bike. In fact it's more a general purpose board capable of doing a whole host of digital electronic tasks. The idea behind the pyEC is that there are a number of layers interconnected to provide...
by metri
Sun Aug 18, 2019 5:36 am
Forum: MicroPython pyboard
Topic: Timers don't start on hard reset, but work fine after soft reset
Replies: 6
Views: 956

Re: Timers don't start on hard reset, but work fine after soft reset

Thanks. I'm glad it wasn't just me. Is it a bug? I can't say it qualifies as a bug either. If init() is like the instantiator of a class, it should clear the callback. It is not documented to state init should be called first, but that alone shouldn't qualify it as a bug. I'm just happy it's solved ...