Imaginous / Cowboy_Untamed

An Android app to lift the speed limit of your Cowboy Bike.
179 stars 51 forks source link

Pedal speed gain read out, cowboy 2 #38

Open Chrrri opened 4 months ago

Chrrri commented 4 months ago

Hi, my cowboy 2 stopped working and torque sensor has been changed but still nothing... Have been looking into your app and seems the torque sensor does work (read voltage of +/- 0,8v in rest) and increased when pedaling. Now i want to check how much pedal speed gain it gives but there is no value for raw and also the value itself is empty. Is that normal? Or something wrong with motor controller? Thanks for the nice app in any case! Super useful to be able to read out all data...

Imaginous commented 4 months ago

I have to look into the documentation to see if there is a actual current register.

Is your motor cable connected correctly and undamaged?

Especially check the point where it enters the motor. Quite often this gets damaged.

Chrrri commented 4 months ago

Thanks for fast reply! And if motor cable is broken i wouldnt get an error/message in?

Imaginous commented 4 months ago

I will have a look tomorrow if there is a register in the motor controller which shows the actual current flowing.

This should raise if the connections are okay. Also the hall sensors should react when spinning the wheel.

Chrrri commented 4 months ago

And how can I check hall sensors? Thx

Imaginous commented 4 months ago

You can read the following motor registers to get some extra data:

262 motor current Motor peak current Amps (raw/32 = value) 263 motor rpm Motor speed RPM 264 motor speed Motor speed % of rated rpm (raw/40.96 = value)
283 bit 0,1,2 should trigger following each other, this is hall sensor 1,2 and 3.

You can enter the addresses manually.

Note you get only RAW values. You have to calculate the real values by hand.

Chrrri commented 4 months ago

Thanks again for the info. Are you sure about 283? seems to be something else, has value (=raw) 65534.

Verzonden vanaf Outlook voor Androidhttps://aka.ms/AAb9ysg


From: Michel @.> Sent: Thursday, March 14, 2024 4:53:05 PM To: Imaginous/Cowboy_Untamed @.> Cc: Chrrri @.>; Author @.> Subject: Re: [Imaginous/Cowboy_Untamed] Pedal speed gain read out, cowboy 2 (Issue #38)

You can read the following motor registers to get some extra data:

262 motor current Motor peak current Amps (raw/32 = value) 263 motor rpm Motor speed RPM 264 motor speed Motor speed % of rated rpm (raw/40.96 = value) 283 bit 0,1,2 should trigger following each other, this is hall sensor 1,2 and 3.

You can enter the addresses manually.

Note you get only RAW values. You have to calculate the real values by hand.

— Reply to this email directly, view it on GitHubhttps://github.com/Imaginous/Cowboy_Untamed/issues/38#issuecomment-1997778896, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BG5DTJNNFJESI5ELAOEH2VDYYHBWDAVCNFSM6AAAAABES5E3BKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJXG43TQOBZGY. You are receiving this because you authored the thread.Message ID: @.***>

Imaginous commented 4 months ago

I'm sure about 283... But there are more bits in there (16) so you only need to look (in binary) at the most right 3 bits of the number.

If you manually turn the wheel a few centimeters between each reading. The last 3 bits should toggle.