M150 GEAR TO PDM

Discussion and support for MoTeC Power Distribution Modules

M150 GEAR TO PDM

Postby tsadilas on Sat Apr 22, 2023 10:27 pm

Hello,
ive attached my gear sensor onto the m150
is there anyway i get this info to my pdm?
so far ive ony managed to get the gear data in my c1212. then i transmit this and i get it from the pdm. that would be ok but i cannot get the pdm to see a value below zero ( reverse) . so i get a zero when im at neutral but also a zero at reverse. any good ideas...

thank you
tsadilas
 
Posts: 15
Joined: Mon Dec 27, 2021 1:04 pm

Re: M150 GEAR TO PDM

Postby Stephen Dean on Mon Apr 24, 2023 10:49 am

Hi,

How are you transmitting the message into the PDM from the C1212? Is it being sent as a 8bit value, or a 16bit? With an 8B value, when the Gear value goes below 0, the value wraps around to 255, so a value of 254 is used for Reverse (-2)
Stephen Dean
MoTeC Research Centre Melbourne, Australia
User avatar
Stephen Dean
Site Admin
 
Posts: 1726
Joined: Tue Dec 02, 2014 10:29 am
Location: Melbourne

Re: M150 GEAR TO PDM

Postby tsadilas on Tue Apr 25, 2023 7:46 pm

i ll do it that way thank you! sounds pretty easy
tsadilas
 
Posts: 15
Joined: Mon Dec 27, 2021 1:04 pm


Return to PDM15 PDM16 PDM30 and PDM32

Who is online

Users browsing this forum: No registered users and 2 guests