про 10к читал, но мало ли, может подбирали.
Подправить прошивку блока питания
С осциллографом энкодер прогнали?
Код: Выделить всё
[code]
/* Encoder Library - TwoKnobs Example
* http://www.pjrc.com/teensy/td_libs_Encoder.html
*
* This example code is in the public domain.
*/
#include <Encoder.h>
// Change these pin numbers to the pins connected to your encoder.
// Best Performance: both pins have interrupt capability
// Good Performance: only the first pin has interrupt capability
// Low Performance: neither pin has interrupt capability
Encoder knobLeft(10, 11);
Encoder knobRight(12, 13); // с 13 ноги убрать светодиод
// avoid using pins with LEDs attached
void setup() {
Serial.begin(9600);
Serial.println("TwoKnobs Encoder Test:");
}
long positionLeft = -999;
long positionRight = -999;
void loop() {
long newLeft, newRight;
newLeft = knobLeft.read();
newRight = knobRight.read();
if (newLeft != positionLeft || newRight != positionRight) {
Serial.print("Left = ");
Serial.print(newLeft);
Serial.print(", Right = ");
Serial.print(newRight);
Serial.println();
positionLeft = newLeft;
positionRight = newRight;
}
// if a character is sent from the serial monitor,
// reset both back to zero.
if (Serial.available()) {
Serial.read();
Serial.println("Reset both knobs to zero");
knobLeft.write(0);
knobRight.write(0);
}
}
Это я про энкодер. У меня 2-а десятка и каждый уникальный.
Так повторил оригинал на кнопках, atmega8 DIP в панели. Исходник раскуриваю.
Как сделаешь на FLproge так проверю
так Вы что то осциллограмму энкодеров так и не выложили сюда.
А в чем проблема ?
Ну ... таким раритетом надо сильно постараться что бы поймать синхронизацию и увидеть выбросы при вращении энкодера. Цифровой нужен с автозахватом.
я такой же халявщик-проверяльщик как и ты
Смотри на схеме R8ViktorPetrov писал(а): ↑06.03.2019{, 12:14}Не совсем понял как автор рассчитывает ток , я так понимаю нужно померить напряжение падения на шунте .
А в проекте ,как это отображается ? должно быть Vшунта = V1- V2
эт чё новый закон дедушки Ома?