Giter Club home page Giter Club logo

curvetracercontrol's People

Contributors

soligen2010 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

curvetracercontrol's Issues

Cannot upload the code

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.