Sure!so i could use one of those chips (the 732 bigger is better) and 16 of the MOSFETs and build my own 16 port i2c MOSFET board ?
That should work too.Is there any reason I couldn't put a led in parallel with the gate of each MOSFET
Moderators: adafruit_support_bill, adafruit
Sure!so i could use one of those chips (the 732 bigger is better) and 16 of the MOSFETs and build my own 16 port i2c MOSFET board ?
That should work too.Is there any reason I couldn't put a led in parallel with the gate of each MOSFET
Code: Select all
int filterstrength = 10; // Roughly how many samples contribute to the filtered output. Bigger = smoother
filteredpitch = ((filterstrength -1)* filteredpitch + orientation.pitch) / filterstrength;
filteredroll = ((filterstrength -1)* filteredroll + orientation.pitch) / filterstrength;
It is easy to overflow these variables with a large "filterstrength". A float gives you a lot more headroom.so i defined my filtedpitch and filteredroll as a float and it is working now