soligen2010 / curvetracercontrol Goto Github PK
View Code? Open in Web Editor NEWAdditional functionality for Mr. Carlson's Lab Curve Tracer
License: GNU General Public License v3.0
Additional functionality for Mr. Carlson's Lab Curve Tracer
License: GNU General Public License v3.0
Hi, I am a contributor to Mr Carlson's Lab (on Patreon) and have access to all of his releases including the Curve Tracer schematic diagram and so on. Well I've already built the above Curve tracer and wanted to apply Denis Cambell's digital MOD to it and already made a board with all the necessary (according to the given schematic but when tried to upload your code to my arduino uno board I get the following errors :
CurveTracerControl:92:15: error: expected primary-expression before 'encoder2'
RotaryEncoder encoder2(ENCODER_PINB, ENCODER_PINA);
^
C:\Users\ovvid\Desktop\MCL PROJECTS\Curve Tracer\CurveTracerControl-MOD\CurveTracerControl-master\CurveTracerControl\CurveTracerControl.ino: In function 'void setup()':
CurveTracerControl:143:57: error: 'FreqCount' was not declared in this scope
attachInterrupt(digitalPinToInterrupt(FREQ_COUNT_PIN),FreqCount,FALLING);
CurveTracerControl:145:3: error: 'encoder2' was not declared in this scope
encoder2.setPosition(0);
^
CurveTracerControl:159:15: error: 'SetupTimer1' was not declared in this scope
SetupTimer1();
^
C:\Users\ovvid\Desktop\MCL PROJECTS\Curve Tracer\CurveTracerControl-MOD\CurveTracerControl-master\CurveTracerControl\CurveTracerControl.ino: In function 'void FreqCount()':
CurveTracerControl:194:78: error: 'GenerateStep' was not declared in this scope
int stepCount = GenerateStep (stepIndex, stepOutputActive, probeFreqError);
^
CurveTracerControl:195:38: error: 'ReadVoltages' was not declared in this scope
ReadVoltages(stepIndex, stepCount);
^
C:\Users\ovvid\Desktop\MCL PROJECTS\Curve Tracer\CurveTracerControl-MOD\CurveTracerControl-master\CurveTracerControl\CurveTracerControl.ino: In function 'void loop()':
CurveTracerControl:240:45: error: 'DisplayProbeFrequency' was not declared in this scope
probeFreqError = !DisplayProbeFrequency();
^
CurveTracerControl:242:28: error: 'DisplayProbeMaxVoltage' was not declared in this scope
DisplayProbeMaxVoltage();
^
CurveTracerControl:243:71: error: 'DisplayStepVoltage' was not declared in this scope
DisplayStepVoltage(stepIndex, stepOutputActive, stepIndexdisplayOn);
^
CurveTracerControl:251:61: error: 'getStepIndex' was not declared in this scope
stepIndex = getStepIndex(stepOutputActive, prevStepIndex);
^
CurveTracerControl:259:80: error: 'GenerateStep' was not declared in this scope
int stepCount = GenerateStep (stepIndex, stepOutputActive, probeFreqError);
^
CurveTracerControl:260:40: error: 'ReadVoltages' was not declared in this scope
ReadVoltages(stepIndex, stepCount);
^
C:\Users\ovvid\Desktop\MCL PROJECTS\Curve Tracer\CurveTracerControl-MOD\CurveTracerControl-master\CurveTracerControl\CurveTracerControl.ino: In function 'int getStepIndex(bool, int)':
CurveTracerControl:300:27: error: 'encoder2' was not declared in this scope
int encoderPosition = encoder2.getPosition();
^
CurveTracerControl:318:5: error: 'encoder2' was not declared in this scope
encoder2.setPosition(stepIndex);
^
C:\Users\ovvid\Desktop\MCL PROJECTS\Curve Tracer\CurveTracerControl-MOD\CurveTracerControl-master\CurveTracerControl\CurveTracerControl.ino: In function 'void __vector_5()':
CurveTracerControl:408:3: error: 'encoder2' was not declared in this scope
encoder2.tick(); // just call tick() to check the state.
^
exit status 1
expected primary-expression before 'encoder2'
Is this a complete and verified (as working) code or is just a proof of concept and that it still needs a lot of work done to it ????
Also, LiquidCristal_I2C.h library seems to be more than 1 version of it with the same name and do not know what to choose. I know from the past experience that loading the wrong type of arduino library can in fact give you errors and prevent you from uploading the code so maybe this is where it goes wrong. Please note that I'm using an LCD 16x2 that has a little I2C board attached at the back with the chip marked as : PCF8574T
Any help is much appreciated
PS: please note that when it comes to coding a am a complete newbie. Well, I loaded a fair number of codes on my various personal projects (but they were always coded by others not myself)
Kind Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.