I recommend it.
Oleksandr Potovichenko
Winning proposal- Projects 13
- Rating 5.0
- Rating 1 209
Budget: 60 USD Deadline: 12 days
Good day ! I am writing a program for Arduino. I can calculate/set the controller’s current.
Proposals are currently absent
-
Arkadiy Yarmolenko
3 June 2023
Скетч взял из урока на ютюбе, залить и незначительно поправить я могу.
Но на прогрмамму меня не хватит.
//Пины управления шаговиком
#define STEP_PIN 2
#define DIR_PIN 3
#define ENABLE_PIN 4
//Пин кнопки
#define start_button 6
//Здесь можно настроить время поворота и паузы
#define move_forward_time 3000 //время прямого хода в мсек
#define move_back_time 3000 //время обратного хода в мсек
#define pause_time 400 //время паузы в мсек
#define frequency 2250 //Время между импульсами в мксек. 1000 мксек = 1 мсек = 0.001 сек. Частота следования импульсов 1/0.001 = 1 кГц,
//Не рекомендуется устанавливать время меньше 100 мсек, т.к. частота будет 10 кГц
//Таймер для millis()
uint32_t timer = 0;
//Логический флаг для рабочего режима
bool flag = 0;
void setup() {
pinMode(start_button, INPUT_PULLUP); //Подтягиваем кнопку к питанию
pinMode(STEP_PIN , OUTPUT); //Настраиваем пины управления
pinMode(DIR_PIN , OUTPUT);
pinMode(ENABLE_PIN , OUTPUT);
digitalWrite(ENABLE_PIN , HIGH); //Выключаем мотор, чтобы не грелся
}
void loop () {
if (!digitalRead(start_button)) { //Если нажали на кнопку
digitalWrite(ENABLE_PIN , LOW); //Включаем мотор
flag = 1; //Активируем флаг рабочего режима
timer = millis(); //Запускаем таймер
}
if (flag) { //Если флаг активирован
digitalWrite(DIR_PIN , HIGH); //Задаем направление вращения
for (int i = 0; i < 3200; i++) { //Выполняем нужное число шагов 200*16 = 3200 шагов оборот
digitalWrite(STEP_PIN , HIGH);
delayMicroseconds(frequency);
digitalWrite(STEP_PIN , LOW);
}
flag = 0;
// do { //Крутим движок move_forward_time мсек
// digitalWrite(STEP_PIN , HIGH);
// delayMicroseconds(frequency);
// digitalWrite(STEP_PIN , LOW);
// } while (millis() - timer < move_forward_time);
//
// delay(pause_time); //Пауза pause_time мсек
// timer = millis(); //Снова запускаем таймер
// digitalWrite(DIR_PIN , LOW); //Крутим движок move_back_time мсек
// do {
// digitalWrite(STEP_PIN , HIGH);
// delayMicroseconds(frequency);
// digitalWrite(STEP_PIN , LOW);
// } while (millis() - timer < move_back_time);
// flag = 0; //Гасим флаг
// digitalWrite(ENABLE_PIN , HIGH); //Выключаем движок, чтобы не грелся
}
}
Current freelance projects in the category Embedded Systems & Microcontrollers
We are seeking a skilled freelancer to open an old GE Fanuc 90-30 backup and export the complete PLC program to PDF. The ideal candidate will have experience with PLC programming and be familiar with GE Fanuc systems. This project requires attention to detail and the ability to handle legacy systems effectively. If you have the necessary skills and experience, we would love to hear from you.
I have some logic in Google Excel related to the integration with the Nova Poshta API and the Turbosms API. Overall, everything works fine, but some functionality needs to be added. All details will be discussed in correspondence. I will provide access to the Excel and the code. It is essential for the performer to have experience working with Google Excel JS in Apps Script.
Development of firmware deployed on the gateway and management of direct interaction with PLC/equipment in the technical room (Modbus, BACnet, etc.).
Ground control station based on SINE LINK
It is necessary to integrate the NCS with the automatic launch system (catapult with a microcontroller) to transmit a signal to the microcontroller, which will initiate the operation of the catapult 500 meters away from it.
DRONE AIRCRAFT TYPE
Create compatibility between the ground control station, automatic start system (SAS), radar, and the aircraft.


