Search found 7 matches
- Sun Aug 05, 2018 6:57 pm
- Forum: MicroPython pyboard
- Topic: Amplitude/PWM
- Replies: 7
- Views: 4822
Re: Amplitude/PWM
For this square signal, it supposed to be dynamic values of amplitude and frequencies which submitted to my systems at different time, so I dont think that using resistors alone could help. I am expecting that I can directly send 1V, 1.5,2V maximum 3V from the pyboard to my system, can I do that?.
- Sun Aug 05, 2018 6:52 pm
- Forum: MicroPython pyboard
- Topic: Amplitude/PWM
- Replies: 7
- Views: 4822
Re: Amplitude/PWM
Thanks for replies:
Actually I am supposed to send a voltage square signal ranging from 0.5 to 2.5 V ( voltage amplitude) with low/high frequencies. In that case I dont know whether I have to send 60.6% for having two volts, or I have to go to the other solution using resistors?.
Actually I am supposed to send a voltage square signal ranging from 0.5 to 2.5 V ( voltage amplitude) with low/high frequencies. In that case I dont know whether I have to send 60.6% for having two volts, or I have to go to the other solution using resistors?.
- Sun Aug 05, 2018 6:43 pm
- Forum: MicroPython pyboard
- Topic: Real Time serial connection (Write data to the board from 3rd party software
- Replies: 7
- Views: 3946
Re: Real Time serial connection (Write data to the board from 3rd party software
Thanks for your reply!. Now it seems that micro python doesnot have the same flexibility as arduino boards, as I need to run this on the python host as it is integrated with other parts of software. I would like to use micropython board, but this could be a dilemma as I cannot send commands from hos...
- Fri Aug 03, 2018 5:13 pm
- Forum: MicroPython pyboard
- Topic: Amplitude/PWM
- Replies: 7
- Views: 4822
Amplitude/PWM
Hello,
I don't know how I can control/tune the value of the amplitude in the applied PWM as follows:
from pyb import Pin, Timer
p = Pin('X1') # X1 has TIM2, CH1
tim = Timer(2, freq=1000)
ch = tim.channel(1, Timer.PWM, pin=p)
ch.pulse_width_percent(50)
I don't know how I can control/tune the value of the amplitude in the applied PWM as follows:
from pyb import Pin, Timer
p = Pin('X1') # X1 has TIM2, CH1
tim = Timer(2, freq=1000)
ch = tim.channel(1, Timer.PWM, pin=p)
ch.pulse_width_percent(50)
- Fri Aug 03, 2018 4:58 pm
- Forum: MicroPython pyboard
- Topic: Real Time serial connection (Write data to the board from 3rd party software
- Replies: 7
- Views: 3946
Re: Real Time serial connection (Write data to the board from 3rd party software
For the moment, I can connect my third party software with micropython, however, I wasnot able to power even a lead because I have to write
pyb.LED(1).on()
I dont know how micropython board v1 can be communicated with other software, any solutions?
pyb.LED(1).on()
I dont know how micropython board v1 can be communicated with other software, any solutions?
- Mon Jul 30, 2018 7:38 pm
- Forum: MicroPython pyboard
- Topic: Real Time serial connection (Write data to the board from 3rd party software
- Replies: 7
- Views: 3946
Re: Real Time serial connection (Write data to the board from 3rd party software
Thanks for your reply! I understand this, but the problem how to define pyb board in python directly, I am using Pyserial, so how Pyb defined directly from my software which some part of it python code. File "serialPortController.py", line 1, in <module> from pyb import Pin ImportError: No module na...
- Mon Jul 30, 2018 4:29 pm
- Forum: MicroPython pyboard
- Topic: Real Time serial connection (Write data to the board from 3rd party software
- Replies: 7
- Views: 3946
Real Time serial connection (Write data to the board from 3rd party software
Hello,
I am using micropython board pyb v1 and I am supposed to use it with another software SOFA framework for sending data to the board from SOFA, however, I found that rshell disconnects and sometimes doesnot work, I would be grateful if there is solution?.
Thanks,
Marwa
I am using micropython board pyb v1 and I am supposed to use it with another software SOFA framework for sending data to the board from SOFA, however, I found that rshell disconnects and sometimes doesnot work, I would be grateful if there is solution?.
Thanks,
Marwa