Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - IBORE2

Pages: 1
1
General Discussion / attiny841 in tinyshield dual motor
« on: December 19, 2015, 10:27:00 PM »
Anyone know how those command are being interpreted. Those command address are not register address in attiny841 datasheet. Are those commands pre-programmed in attiny841?  where can I find the "code" being used to interpret those command?  Current problem I have is 0-MaxPwm is not linearly proportional to 0-Vmax range output. I wonder if there is some issue in the "code" which interpret the command.

MotorDriver.cpp

  writeByte(COMMAND_SET_MODE, MODE_COMMAND);//send interpreted commands- see header file
  writeByte(COMMAND_CLOCK_PRESCALER, T841_CLOCK_PRESCALER_1);
  writeByte(COMMAND_PRESCALER_1, T841_TIMER_PRESCALER_1);
  writeByte(COMMAND_PRESCALER_2, T841_TIMER_PRESCALER_1);
  writeCommand(COMMAND_TIMER_1, PWMperiod);
  writeCommand(COMMAND_TIMER_2, PWMperiod);
  writeByte(COMMAND_SET_FAILSAFE_PRESCALER, T841_TIMER_PRESCALER_8);
 

Pages: 1
SMF spam blocked by CleanTalk