Many thanks.
Ps. Just a question: have you in work a new version of unipi to use this pins? How digital input for example.
Many thanks.
Ps. Just a question: have you in work a new version of unipi to use this pins? How digital input for example.
Hi
the unipi 1.1 have 26 pin connection, in the raspberry pi 3 we have 40 pin.
Can I use the pins fom 27 to 40 of raspberry for other purpose?
thanks
Hi @tomas_hora , we work in continuos automation so the response time must be in at max 50 mills.
hi @tomas_hora
We have created an automation machine and we writred custom code that use mdobus server.
I realize that the neuron is not ideal for fast automation becouse the response time of DO and DI is not costant and specially checking input events is very hard throught polling (we add different modbus connections for any input)
I think the neuron is ideal for static controlling but not for automation (Photocells, sensors) and real time application.
Do you think right my opinion?
Regards.
Sorry how do you get the value = 0.00010625
About the number of pulse I think I must manage the time. Right?
I must manage the followinf motor:
OMRON R88M-G75030H-S2-D MOT. NR
BRUSHLESS ConnIP67 3000rpm 2,39Nm 750W
At moment when I change the PWM value nothing happens, just stop the motor if I set to 0.
I have set prescale to 5 and cycle to 100
The motor set to 500 pulses to run for 360 degree
But I can change only the speed if I change the prescale value.
It is correct?
Can I send a fixed number of pulses to move the servo at the specific position?
thanks.
Hi
I need to manage the pwm out to control a servo motor.
I don't understand the use of cycle and prescale parameter and what is the range of PWM value register.
In my case the PWM value is ignored, I use it just for stop (0) and run (1).
Do you have an example of use
Thanks.
Hi,
thanks.
So, there isn't way to get the digitail input state change different that polling (es hardware interrup) ?
Hi,
i don't understand the use of register Interrupt mask on each group.
Can I use it to read the Digital input state as interrup ?
Now I check the Digital Input state changed with polling on register, is there another way?
thanks.
Hi,
for wiring pi pin the pin number18 is the 1.
Sorry but i don't understand why you use the AI1.
We wired the AOV with external power and check the output on AO.
We bought the unipi this month.
Now we are trying the functionality but we have a problem with Analog Output.
We tried with pi4j (a java library for gpio) but don't work
This is the code:
public static void main(String[] args) throws InterruptedException {
// initialize wiringPi library
com.pi4j.wiringpi.Gpio.wiringPiSetup();
// create soft-pwm pins (min=0 ; max=100)
SoftPwm.softPwmCreate(1, 0, 100);
// continuous loop
while (true) {
// fade LED to fully ON
for (int i = 0; i <= 100; i++) {
SoftPwm.softPwmWrite(1, i);
Thread.sleep(25);
}
// fade LED to fully OFF
for (int i = 100; i >= 0; i–) {
SoftPwm.softPwmWrite(1, i);
Thread.sleep(25);
}
}
}
the same code with a led on pin work correctly.
We tried also with wiringpi (gpio pwm command) but on unipi don't work.
The voltage on AO don't change, we just manage it using the blue trimmer.
Can you help us?
Many Thanks.
We bought the unipi this month.
Now we are trying the functionality but we have a problem with Analog Output.
We tried with pi4j (a java library for gpio) but don't work
This is the code:
public static void main(String[] args) throws InterruptedException {
// initialize wiringPi library
com.pi4j.wiringpi.Gpio.wiringPiSetup();
// create soft-pwm pins (min=0 ; max=100)
SoftPwm.softPwmCreate(1, 0, 100);
// continuous loop
while (true) {
// fade LED to fully ON
for (int i = 0; i <= 100; i++) {
SoftPwm.softPwmWrite(1, i);
Thread.sleep(25);
}
// fade LED to fully OFF
for (int i = 100; i >= 0; i–) {
SoftPwm.softPwmWrite(1, i);
Thread.sleep(25);
}
}
}
the same code with a led on pin work correctly.
We tried also with wiringpi (gpio pwm command) but on unipi don't work.
The voltage on AO don't change, we just manage it using the blue trimmer.
Can you help us?
Many Thanks.