-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling problems in windows #2
Comments
Ok, now I see the problem. First of all you shouldn't copy Let's say you downloaded avr-gcc from here: http://blog.zakkemble.co.uk/avr-gcc-builds/ and unpacked to
Please double check if this is a valid path to bin directory, which contains Now you can check if avr-gcc is recognized as a command:
Same with make:
And Python:
If all of that works, just execute If you want to add avr-gcc to PATH permamently, use method described here: https://www.computerhope.com/issues/ch000549.htm. |
Hey Adam! Thanks for that clear instruction/s. Worked flawlessly! Now it generated a hex file. Few more questions: This will generate hex file and no eep file? I will try generated hex and burn it in a standard arduino mini(16MHz) using usbasp hardware. Changing the mcu clock to 16000000 in makefile file is valid, right? |
Update: Hardware now working. Xtal changed to 20MHz. I have tried your older code and meter needle never moves. Tried all analog inputs. And then I compiled again your latest code "using single lcd" . Now the meter shows pegged. Still no response from analog input pin/s (assuming this gets audio signal from A0) http://i68.tinypic.com/se7qq1.jpg Am I still missing something here? |
It should work with 16MHz. Currently code is reading ADC2 (A2 if you're using Arduino board). You can change that in main.c around line 93:
For example change it to adc_get(0). Additionally you have to do either of these things to set reference voltage to 5V:
The right solution depends on your board (how AREF is connected). |
Got it! So this is using Aref.no wonder 😀. My bad. Anyways at what voltage does the final op-amp output is with 0v input signal? Around 2.5v? Assuming using rail2rail output? I have here mcp602. Havent wired it yet according to your diagram. Update: Arduino pro mini has no exposed Aref pad. Connected a 10k to analog. Low needle is around 2.398v.full peg is 0.849v. Now i get it. So the op-amp front is an inverting && on virtual GND || center vcc. How do I un-invert the analog input? Sorry but I dont have experience with language.at least not yet 😴 Will definetly DO the hardware front-end soon.. |
Yes, it will be somewhere around virtual ground, so 2.5V. If I remember correctly with input of sine wave with amplitude of ~0.5V it goes down to around 1.3V (I may be wrong about that, I tried many versions of this circuit). In this code (main.c:93):
498 is "zero" level, and 164 is scaling factor. You can adjust it to be more or less sensitive. Additionally you can change gain of input stage by changing the 47k resistor. In my prototype I used mcp6002 which has both rail-to-rail inputs and outputs. |
Copy that. So if I change 498 to 0, would this mean also as "referenced to GND"? and how do I turn off or disable Aref? |
Adam Cheers man! |
Cool 😎 |
Ok, I added quick fix to both main and single_display branches: e31dd53 Currently the code checks for needle angle to make peak indicator visible (main.c:106):
|
Using windows 64-bit machine
What I have done:
Copy the make.exe inside a folder with the SRC folder in it. When I envoke make, 1st problem it was looking for missing file.
[IMG]http://i65.tinypic.com/3145mhh.jpg[/IMG]
Now I have downloaded and installed python 3.6
Run the app and loaded python files. It returns error.
[IMG]http://i63.tinypic.com/34t1gup.jpg[/IMG]
The text was updated successfully, but these errors were encountered: