tago Posted March 29, 2019 Report Share Posted March 29, 2019 (edited) Hi, i built an AINSER8 Module on perfboard. When using it as the only module connected to the core the jitter seems reasonable. Now if i connect a CLCD (OLED/Winstar 40x2) to the core the great jittering begins. (7bit alternates +/- 1) Next i tested a standard 128x64 OLED which seems not to induce additional jitter. Has someone experienced something like this? Any ideas how to solve such issues? Thank you very much! Edited March 29, 2019 by tago Quote Link to comment Share on other sites More sharing options...
jojjelito Posted March 31, 2019 Report Share Posted March 31, 2019 (edited) Try to power the AINSER from a separate, dedicated PSU. Or try to power the display from it’s own PSU or regulator. Some older systems tried to keep these issues under control by providing VCC for digital stuff, well regulated V+- for analog electronics as well as AGND, plus a separate dirty DGND for digital, switching stuff. The Preen FM2 needs some care with shielding the OLED coil, or replacing it on the OLED PCB with a quieter model, that’s also worth investigating. Edited April 2, 2019 by jojjelito Autocorrect... Quote Link to comment Share on other sites More sharing options...
tago Posted April 1, 2019 Author Report Share Posted April 1, 2019 (edited) Thanks @jojjelito I have some further questions if you don't mind, since i don't have much experience in electronics. I'd like to power the system via a single USB port. Does a separate regulator for the display or AINSER decouple each other in a sufficiently manner? How do i get a separate AGND with CORE_STM32? Do you mean by 'other OLED PCB', the pcb on the display itself? Edited April 1, 2019 by tago Quote Link to comment Share on other sites More sharing options...
Zam Posted April 1, 2019 Report Share Posted April 1, 2019 Hello Dedicated regulator for AINSER8 Vref help a lot... Unfortunately it will be difficult to regulate 5V from a 5V USB power (usual voltage drop at regulator) With the proper design it's possible to run the AINSER8 at 11bit without jitter and 12bit low jitter. As already mentioned, 0V path is also a key to achieve this result. Best Zam Quote Link to comment Share on other sites More sharing options...
tago Posted April 1, 2019 Author Report Share Posted April 1, 2019 Thanks @Zam So in my case i need a separate voltage regulator for the display, because AINSER needs the full 5V and therefor should be left alone? The displays works from 3.3V to 5V and i suppose a small voltage drop is not much of an issue. What type of regulator should i use? I read about bulk or decoupling capacitors. Do you think they could be of help? Quote Link to comment Share on other sites More sharing options...
jojjelito Posted April 2, 2019 Report Share Posted April 2, 2019 A single USB won’t give you that much wattage to play around with. Plus, the USB power itself can be assumed to be quite dirty if derived from a cheap switcher shared with computer components. Your best bet would be to derive multiple voltages from 9VDC, or even 9VAC if you need bipolar voltage and no fancy solution for -12V from +9VDC (inverter or DCDC converter), then use multiple 78xx or 79xx with the addition of a 78/79xx compatible switcher for the digital VCC and OLED VCC. The Preen FM2 OLED saga is described here: http://ixox.fr/forum/index.php?topic=69159.0 Basically, shielding works. Separate power will also help. Quote Link to comment Share on other sites More sharing options...
FantomXR Posted April 6, 2019 Report Share Posted April 6, 2019 The solution is easy: Go and get a MCP1541. You connect USB 5V to the input and it's output you connect to the VREF input on the AINSER8 (of course you need to cut the trace between VREF and +5V on the AINSER) and to the all analog controls that are connected to the AINSER8. This little IC solved all my problems I had with jitter. Especially when running just at 7bit, this should do the trick. Quote Link to comment Share on other sites More sharing options...
tago Posted April 6, 2019 Author Report Share Posted April 6, 2019 (edited) Thanks @FantomXR I really like your solution. The MCP1541 datasheets says 4V output. Is really enough for Vref? What effect has a 1V drop for the A/D converter? Does it mean -20% resolution? If i understand your solution correctly the quality of the Vref is more important than the voltage range. Do have to branch the USB power before it goes into the core or can use the 5V of J19 as input voltage for the MCP1541? Edited April 6, 2019 by tago Quote Link to comment Share on other sites More sharing options...
FantomXR Posted April 6, 2019 Report Share Posted April 6, 2019 I use this method a year or so on different cores with different configurations. My last build was a faderbox with 9 100mm faders which can send 10bit resolution with USB-power. If you only need 7bit, there shouldn't be any problem. Yes, it has 4V Output. Of course 5V would be better. But as @Zam already said: You can not really clean up 5V USB and end up with 5V. You will loose something. I'm okay with it, because it works perfectly. Even on breadboard. No need for a high-precision PCB-design to get this working. Just try it. It costs just a few cents. I have a few capacitors connected to the USB-5V-rail and an inductor in front. But even that is not necessary. My earlier designs didn't have that filter-caps and worked very well too. Quote Link to comment Share on other sites More sharing options...
Zam Posted April 7, 2019 Report Share Posted April 7, 2019 Hello 21 hours ago, tago said: The MCP1541 datasheets says 4V output. Is really enough for Vref? What effect has a 1V drop for the A/D converter? Does it mean -20% resolution? No, you still have 100% res , but steps is lower, 4v is more or less 1mV per bit at 12bit (4096 steps) wile 5V it's about 1.25mV in fact the MCP1541 is designed to produce 1mV/bit resolution at 12bit ! (data say 4096mv Vout) This won't change that much for ripple, noise and jitter from external interferences. 22 hours ago, tago said: Do have to branch the USB power before it goes into the core or can use the 5V of J19 as input voltage for the MCP1541? Use the digital 5V close to the MCP3208 (coming from J19) and don't forget to use the same Vref for your pots or faders, be careful about load as this regulators don't offer that much mA at output (don't drive anything but ADC and pots) Have a look at MCP3208 datasheet page 19 for design notes and coupling with the precision regulator Best Zam Quote Link to comment Share on other sites More sharing options...
FantomXR Posted April 7, 2019 Report Share Posted April 7, 2019 11 minutes ago, Zam said: This won't change that much for ripple, noise and jitter from external interferences. 22 hours ago, tago said: Well... at least for me it solved all problems :-) Quote Link to comment Share on other sites More sharing options...
Zam Posted April 7, 2019 Report Share Posted April 7, 2019 1 hour ago, FantomXR said: Well... at least for me it solved all problems :-) I mean 1mV per bit or 1.25mV per bit (according to different Vref, 4 or 5V) won't change that much if you have a regulator that clean the supply below or around mV noise/ripple, you'll still have jitter at 12bit but clean at 11bit or lower, which is way better than jittery 7bit for the OP ! Best Zam Quote Link to comment Share on other sites More sharing options...
tago Posted April 11, 2019 Author Report Share Posted April 11, 2019 Thanks all for your help. I found the LM4040 CIZ-5,0 (link) as possible alternative to the MCP1541. Would the 4040 work as well? Quote Link to comment Share on other sites More sharing options...
FantomXR Posted April 11, 2019 Report Share Posted April 11, 2019 I don't know. I can't see in the datasheet if 5V input voltage is enough... so, try it and please report back. Quote Link to comment Share on other sites More sharing options...
tago Posted April 11, 2019 Author Report Share Posted April 11, 2019 Yeah, i couldn't figure out the needed input voltage either. I'd like to try it, but have to wait until i need some more components for a new order. Those shipping costs are really high if you only need some test parts. Quote Link to comment Share on other sites More sharing options...
Zam Posted April 12, 2019 Report Share Posted April 12, 2019 12 hours ago, tago said: Yeah, i couldn't figure out the needed input voltage either. The whole datasheet define it more or less like a zener, so I suppose there is no voltage drop, but a "voltage limiter" behaviour. Just my guess, but you better try a 4.1 version (4.096V) because if your 5VDD go down below 5V for any reason, your "precision zener" at 5.000V will follow. With the 4.1V version you have 20% margin before issue at analoge Vref. Best Zam Quote Link to comment Share on other sites More sharing options...
tago Posted April 12, 2019 Author Report Share Posted April 12, 2019 Am i correct that the LM4040 has lower noise? Do you think this relevant in this use case? Otherwise it looks like you need an additional resistor with the LM4040, which i'd rather like to avoid. Maybe i should just use the MCP1541. Quote Link to comment Share on other sites More sharing options...
Zam Posted April 12, 2019 Report Share Posted April 12, 2019 I'll say try both... it's cheap ! Best Zam Quote Link to comment Share on other sites More sharing options...
tago Posted April 17, 2019 Author Report Share Posted April 17, 2019 (edited) On 6.4.2019 at 7:51 PM, FantomXR said: The solution is easy: Go and get a MCP1541. You connect USB 5V to the input and it's output you connect to the VREF input on the AINSER8 (of course you need to cut the trace between VREF and +5V on the AINSER) and to the all analog controls that are connected to the AINSER8. This little IC solved all my problems I had with jitter. Especially when running just at 7bit, this should do the trick. Just to be sure. Vref is also used on the analog inputs J6 (AINSER8) instead of Vd (5V), right? If i connect pots to J6 they will provide max 4.096V (Vref) to the analog ins. Edit: i wonder why the external psu on AINSER64 is only connected to Vref of the ADC, but not to J6-13. Edited April 17, 2019 by tago Quote Link to comment Share on other sites More sharing options...
Zam Posted April 17, 2019 Report Share Posted April 17, 2019 (edited) 1 hour ago, tago said: Just to be sure. Vref is also used on the analog inputs J6 (AINSER8) instead of Vd (5V), right? If i connect pots to J6 they will provide max 4.096V (Vref) to the analog ins. Edit: i wonder why the external psu on AINSER64 is only connected to Vref of the ADC, but not to J6-13. Hello Vref is your ref analog voltage, you need to provide the pot with the same voltage. Vref is the 100% value for analog inputs whatever voltage you feed. Please check again the AINSER64, Vref connect to ADC as J6 to 13 for pots (and 4051 multiplexed analog switches) Best Zam Edited April 17, 2019 by Zam Quote Link to comment Share on other sites More sharing options...
tago Posted April 17, 2019 Author Report Share Posted April 17, 2019 Hi Zam, thanks for confirming the Vref wiring, i somehow couldn't find an example. That's why i looked at the AINSER64 schema. You're of course right about the AINSER64 connections. Sorry, i'm an idiot! Quote Link to comment Share on other sites More sharing options...
Zam Posted April 17, 2019 Report Share Posted April 17, 2019 58 minutes ago, tago said: Sorry, i'm an idiot! Hi Tago I won't call someone who ask questions, trying to learn, as experimenting things an idiot ! Best Zam Quote Link to comment Share on other sites More sharing options...
tago Posted April 17, 2019 Author Report Share Posted April 17, 2019 One more question :) What is the 10 ohm resistor (R1) on AINSER8/64 for? Is this some kind of protection? Can i leave it out if i use a voltage reference? On the AINSER64 this is only connected to Vdd, not to the voltage regulator. Quote Link to comment Share on other sites More sharing options...
FantomXR Posted April 17, 2019 Report Share Posted April 17, 2019 I'm quite sure you can leave it away if using an external PSU. I've never used it in conjunction with MCP1541. I think the resistor should "decouple" the VRef from Vdd somehow. But I don't know anything about the technical background. Quote Link to comment Share on other sites More sharing options...
Zam Posted April 17, 2019 Report Share Posted April 17, 2019 Hello We can't call a resistor a decoupling device but you use " so it's ok. In this case I think it's a small voltage drop to ensure Vref stay below VDD, to avoid error at full scale, as I nether won't call 10ohm resistor a current limiting for Vref input with half an amp at 5V... If you use separate regulation you don't need this resistor. Best Zam Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.