Search found 10 matches

by Coensk
Tue May 09, 2017 12:02 pm
Forum: AVR & Arduino
Topic: Problem with reference voltage on Arduino Mega
Replies: 4
Views: 8091

Re: Problem with reference voltage on Arduino Mega

I have changed it in the AVR CAL ADC file but still the same problem persists, whenever an analog signal is read by the Arduino Mega, the reference voltage present at the ARef pin changes. When done with a C-code component in the flowchart it changes from 2.56V to UVcc => 5V. When changed in the AVR...
by Coensk
Fri May 05, 2017 5:34 pm
Forum: AVR & Arduino
Topic: Problem with reference voltage on Arduino Mega
Replies: 4
Views: 8091

Re: Problem with reference voltage on Arduino Mega

Hello, Thanks for your reply Benj, is the line I should change under the 'ADC type 10 Supported Devices'? (Arduino Mega) I changed the value there but now the voltage over the ARef pin just measures 0V.. Later I changed the value in every type of "Supported Devices", still the same outcome.. Thanks ...
by Coensk
Fri May 05, 2017 9:43 am
Forum: AVR & Arduino
Topic: Problem with reference voltage on Arduino Mega
Replies: 4
Views: 8091

Problem with reference voltage on Arduino Mega

Hello, While finetuning my program I stumbled upon a problem with the internal reference voltage (ARef) of my Arduino Mega. I set the internal reference voltage to 2.56V just like LeighM explained me in one of my previous questions ( https://www.matrixtsl.com/mmforums/viewtopic.php?f=63&t=18701 ). T...
by Coensk
Tue Apr 25, 2017 1:15 pm
Forum: Flowcode V7
Topic: Change background to white?
Replies: 1
Views: 2301

Change background to white?

Hello,

Can someone please explain me how to change the background from dark gray to white, I have to put pieces of my program in an essay, so this would be useful.

Thanks, Coensk.
by Coensk
Mon Mar 27, 2017 2:23 pm
Forum: Flowcode V7
Topic: Enabling 2.56v reference voltage on Arduino Mega
Replies: 3
Views: 3661

Re: Enabling 2.56v reference voltage on Arduino Mega

Thanks LeighM,

Can i just use this component macro "RawEnable" and "RawSampleByte" with the C code in between, once at the beginning of my program and the ADMUX bits will stay enabled throughout the program?

Coensk
by Coensk
Mon Mar 27, 2017 1:04 pm
Forum: Flowcode V7
Topic: Enabling 2.56v reference voltage on Arduino Mega
Replies: 3
Views: 3661

Enabling 2.56v reference voltage on Arduino Mega

Hello, I'm trying to enable the 2.56v voltage on the Aref pin of my Arduino Mega. I already tried numerous ways to write a "1" to bit 6 and 7 of the ADMUX register in C code but every time I measure 0v over the Aref pin.. 2 questions: 1. How can I correctly measure the pin (Aref)? by placing a resis...
by Coensk
Wed Mar 22, 2017 7:59 am
Forum: Flowcode V7
Topic: Comparing 2 UInt values
Replies: 3
Views: 3698

Re: Comparing 2 UInt values

Hello Benj, I already solved the "array index is out of bounds" error which was a silly question.. :roll: The program is working as intended right now, I changed the datatype to Bool, but I have to do the calculation for each bit of the array (Change[2] = Val[2] XOR Preval[2]) while i was trying to ...
by Coensk
Tue Mar 21, 2017 1:07 pm
Forum: Flowcode V7
Topic: Comparing 2 UInt values
Replies: 3
Views: 3698

Comparing 2 UInt values

Hello, In my program I'm trying to compare 2 variables "Val[10]" and "Preval[10]". Both variables consist of 10 bits. I'm trying to see which bit changed by using the XOR command and storing the final value in a third variable "Change[10]". I'm kind of new to Flowcode so can anyone explain me why I'...
by Coensk
Thu Mar 16, 2017 2:11 pm
Forum: Flowcode V7
Topic: Encoder for menu selection?
Replies: 4
Views: 4280

Re: Encoder for menu selection?

Hey Benj, Thanks for your quick answer, this made things a lot easier to understand. Is it normal that the encoder never simulates in FlowCode yet it does something when i test it in Arduino? Whichever direction i turn the encoder, the block just goes down one line then stops doing anything. Shouldn...
by Coensk
Thu Mar 16, 2017 9:48 am
Forum: Flowcode V7
Topic: Encoder for menu selection?
Replies: 4
Views: 4280

Encoder for menu selection?

Hello, I'm new to Flowcode programming and trying to make a little menu for my Arduino Mega and EBM001 lcd display. So far the menu works but with push buttons. You can find my program under attachments. Now I'm trying to make it work with the encoder. Every attempt at making it work with the encode...