Forums before death by AOL, social media and spammers... "We can't have nice things"
|    sci.optics    |    Discussion relating to the science of op    |    12,750 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 11,568 of 12,750    |
|    haiticare2011@gmail.com to Skywise    |
|    Re: Fed up with Arcane microprocessor do    |
|    20 Jan 14 09:19:32    |
      On Saturday, January 18, 2014 4:02:46 PM UTC-5, Skywise wrote:       > haitic1@gmail.com wrote in       >       > news:6c657e9e-c9ead0df@googlegroups.com:       >       >       >       >       >       > > First, what kind of ADC does it have?       >       >       >       > > Out of curiosity, have you used the Propeller for any sensor ADC?       >       >       >       > Well, I'm not a pro at this and have made only a few projects.       >       > As I said, I'm a tinkerer. Haven't worked in electronics for       >       > close to 20 years now. My electronics training was decades ago       >       > and I was always much better at the digital side of things than       >       > analog. But I have always done programming as a hobby as well       >       > so that helps when playing with MCUs.       >       >       >       > It does not have a built in ADC, but I do know that it can be       >       > done using the counter/timers and some external R/C. There are       >       > sample codes. Not really sure of the accuracy of that method.       >       >       >       > However, for one of my projects I preferred instead to use some       >       > TI ADC chips to read a joystick. I do recall having a lot of       >       > analog noise but I cleaned it up in software by averaging results       >       > over many samples. Of course, this was all on a breadboard so       >       > that was probably the source of my noise.       >       >       >       > Nothing super fancy, nor was I going for super accuracy, but I       >       > see no reason why it's not possible with a properly designed       >       > circuit.       >       >       >       > The nice thing about having multiple cores is that you don't       >       > need to muck about with interupts. In fact, there are no       >       > interupts on the propeller.       >       >       >       > I had one core running an assembly program to continuously read       >       > the ADC, do the averaging, and dump the values into common memory.       >       > There is memory for each core, and memory common to all cores.       >       > Then the main program, running in another core, would just access       >       > the common memory whenever it needed to 'read' the joystick. The       >       > main program was written in propellers high level 'Spin' language.       >       >       >       > My most recent tinkering was to drive some TI TLC5946 LED video       >       > driver chips for full 'analog' brightness control of RGB LED's.       >       > Again, having multiple cores helped do things simultaneously.       >       > One core using ASM is used to drive the chips continuously. It       >       > reads the RGB values from common memory and drives the chips       >       > continously. It also uses the timer circuitry from the same core       >       > to generate the grayscale clock the chips need to PWM the LEDs.       >       > The counter/timers can be used to generate signals which run       >       > independantly of the core (set and forget).       >       >       >       > The fun part of that project was taking into account the       >       > nonlinearity of the eye to perceived brightness. The ASM code       >       > uses a lookup table to convert the 8-bit RGB values to a 12-bit       >       > value for the driver chips. Making the lookup table was fun.       >       >       >       > But that's pretty much the "state of the art" that I personally       >       > have done.       >       >       >       > There is plenty of documentation on their website so if you       >       > get the chance, I think it'll be worth your time to at least       >       > investigate.       >       >       >       > Brian       >       > --       >       > http://www.earthwaves.org/forum/index.php - Earthquake prediction & Earth       >       > Sciences       >       > http://www.skywise711.com - Lasers, Seismology, Astronomy, Skepticism       >       > Sed quis custodiet ipsos Custodes?              Thanks for application info. How fast was your ADC running? Do you remember       which Ti adc it was? I have seen recommendations to just put a cap to ground       on the ADC input, depending on input BW. Potentiometers in joy sticks, etc.       are also quite noisy.       I'm still thinking what use an 8 core 32 bit mcu is...Amazing thing.       jb              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca