Search found 10 matches
- Sun Mar 26, 2017 5:44 pm
- Forum: MicroPython pyboard
- Topic: Read ADC without reinitializing channel
- Replies: 11
- Views: 9157
Re: Read ADC without reinitializing channel
Thank you very much! Using the information you gave me, I was able to add my own command to the micropython interpreter which directly returns the angle of the motor. The next days I will check if that allows me to speed up the motor to higher speeds.
- Fri Mar 24, 2017 2:48 pm
- Forum: MicroPython pyboard
- Topic: Read ADC without reinitializing channel
- Replies: 11
- Views: 9157
Re: Read ADC without reinitializing channel
Thank you guys for your fast answers! :) I am currently trying to hack the micropython firmware in order to implement a function in C that allows me to directly get the angle if the rotor. The base for doing this are all the other examples I find in the file stmhal/adc.c, such as the read battery fu...
- Fri Feb 24, 2017 8:08 pm
- Forum: MicroPython pyboard
- Topic: Read ADC without reinitializing channel
- Replies: 11
- Views: 9157
Re: Read ADC without reinitializing channel
Hey guys, thank you very much for writing such a lot of answers :) First, I'd like to clarify what I am planning to do to avoid some confusion An ADC read takes 94us here. When you apply a voltage to a motor winding, current increases relatively slowly (usually and to a first order proportional to t...
- Tue Feb 21, 2017 7:25 pm
- Forum: MicroPython pyboard
- Topic: Read ADC without reinitializing channel
- Replies: 11
- Views: 9157
Re: Read ADC without reinitializing channel
Why would you try that out in C before doing it in Python? The whole point of using a pyboard was to be able to use micropython instead of C, since that is a whole lot easier for me. What do you mean by "book-keeping with the last state and checking if it changed"? The value does alwas change a litt...
- Sun Feb 19, 2017 1:34 pm
- Forum: MicroPython pyboard
- Topic: Read ADC without reinitializing channel
- Replies: 11
- Views: 9157
Read ADC without reinitializing channel
Hey there! :) I've got some issues trying to optimize the performance of my ADC with Micropython on my PyBoard Lite. I need two ADC channels to get the voltage of two hall-effect-sensors, which is then used to calculate the angle of a motor. Since knowledge about the angle is required to define whic...
- Tue Mar 31, 2015 8:12 pm
- Forum: Development of MicroPython
- Topic: Adding new Python Commands
- Replies: 5
- Views: 5301
- Tue Mar 31, 2015 6:52 pm
- Forum: Development of MicroPython
- Topic: Adding new Python Commands
- Replies: 5
- Views: 5301
Re: Adding new Python Commands
Thank you very much Bryan,
I will try it out and tell you if that worked
I will try it out and tell you if that worked
- Tue Mar 31, 2015 3:32 pm
- Forum: Development of MicroPython
- Topic: Adding new Python Commands
- Replies: 5
- Views: 5301
Adding new Python Commands
Hi there! :) You may have seen my post asking about accelerating the ADC using DMA. Damien solved my issue by changing the firmware so that sampling can be done much faster now. Nevertheless I would like to try to implement ADC sampling using DMA by changing the firmware. Unfortunately I haven't bee...
- Wed Mar 25, 2015 6:18 pm
- Forum: MicroPython pyboard
- Topic: Read ADC using DMA
- Replies: 20
- Views: 26423
Re: Read ADC using DMA
Hello Damien, thank you very much for solving my problem! I've already seen you commit on github and a minute ago I flashed the new version to my PyBoard. Now I will try out how this works by sampling some data from my gamma spectrometer. I think it would be nice to get an error if I call read_timed...
- Sat Mar 21, 2015 8:13 pm
- Forum: MicroPython pyboard
- Topic: Read ADC using DMA
- Replies: 20
- Views: 26423
Read ADC using DMA
Hi there! :) About a week ago I started using the MicroPython board that I got because of the kickstarter campaign and that wasn't in use yet. The reason why I decided to use the PyBoard in this case is the very fast and precice analog-digital-converter provided by the STM32F405RG. You might guess w...