Search found 149 matches

by gratefulfrog
Wed May 06, 2015 4:34 pm
Forum: General Discussion and Questions
Topic: Pyboard DAC and LED dimmer
Replies: 12
Views: 10981

Re: Pyboard DAC and LED dimmer

Hi, Here are the results of testing your suggestions : 1- If you are able to get good 'popless' shunting at 1% PWM, that tells me that you don't need to drive your Vactrol LED at anything close to the 40-50mA that you will get at 100% duty cycle. You can probably dispense with the BJT and drive the ...
by gratefulfrog
Mon May 04, 2015 9:25 pm
Forum: General Discussion and Questions
Topic: Pyboard DAC and LED dimmer
Replies: 12
Views: 10981

Re: Pyboard DAC and LED dimmer

Thanks again for those new tips. I am away from the workbench for a few days, but will report back as soon as I have implemented the changes. I had tried separating the GNDs from the audio and the active electronics in the past and that cause tons of noise to get into the amp. So I put all the groun...
by gratefulfrog
Sun May 03, 2015 3:19 pm
Forum: General Discussion and Questions
Topic: Pyboard DAC and LED dimmer
Replies: 12
Views: 10981

Re: Pyboard DAC and LED dimmer

Following your ideas, and reading some books (yes, Google is not the only place to find information ;-) ), I built this circuit (schematic attached) which seems to work! My goal is to eliminate the pops when the audio source changes by first shunting the amp input, making the change, then un-shuntin...
by gratefulfrog
Sun May 03, 2015 9:27 am
Forum: General Discussion and Questions
Topic: Pyboard DAC and LED dimmer
Replies: 12
Views: 10981

Re: Pyboard DAC and LED dimmer

Thank you both for your replies. First, I guess I should have explained exactly what I am doing. I am using a vactrol (LED-LDR) as an opto-isolated variable resistance. I want to control it with the pyboad. The vactrol LED has a current range of 0 to 40mA. That is what I want to control with a resol...
by gratefulfrog
Sat May 02, 2015 6:57 pm
Forum: General Discussion and Questions
Topic: Pyboard DAC and LED dimmer
Replies: 12
Views: 10981

Pyboard DAC and LED dimmer

Hello, I have an application which requires that I gradually increase/decrease the current through a LED (5v) The current has to vary from 0 to 40mA. Excuse my lack of knowledge, but I have the feeling that the pyboard's DAC with 256 step resolution should be able to somehow control the current via ...
by gratefulfrog
Mon Mar 30, 2015 10:34 am
Forum: General Discussion and Questions
Topic: eval() on pyboard
Replies: 4
Views: 5873

Re: eval() on pyboard

Hi, Thanks for the pointer! I updated the firmware but wasn't sure if the network drivers were right for my board or not? Anyway, I updated to the version with the network drivers and then the eval issue was cleared. Thanks for the help, and again sorry to be so ignorant! As I said earlier, this boa...
by gratefulfrog
Sun Mar 29, 2015 10:54 pm
Forum: General Discussion and Questions
Topic: eval() on pyboard
Replies: 4
Views: 5873

Re: eval() on pyboard

Hi! Thanks for the reply. When I do a soft boot on my board: Micro Python v1.2-15-g951ed9d on 2014-07-20; PYBv1.0 with STM32F405RG The following code works on the live on-line board : class C: def __init__(self): self.x=1 def show(self, arg): print(eval('self.' + arg, globals(),{'self':self})) c = C...
by gratefulfrog
Sun Mar 29, 2015 2:57 pm
Forum: General Discussion and Questions
Topic: eval() on pyboard
Replies: 4
Views: 5873

eval() on pyboard

Hi, I'm perplexed by the pyboard's implementation of eval(). On a linux pc, running python 3.4.0: >>> eval("1+1",globals(),locals()) 2 But on the pyboard: >>> eval("1+1",globals(),locals()) Traceback (most recent call last): File "<stdin>", line 0, in <module> TypeError: function takes 1 positional ...
by gratefulfrog
Sun Mar 01, 2015 3:10 pm
Forum: General Discussion and Questions
Topic: pyboard and SPI
Replies: 0
Views: 2581

pyboard and SPI

Hi! I'm new to the pyboard and this froum, but I justed wanted to share my first pyboard experiences with you all. My application, the ArduGuitar , requires SPI and shift registers, so I started with a 74HC595 and the pyboard and WOW was it easy to get that going! Here's a little video demo . My goa...