Search found 46 matches
- Thu Jun 06, 2019 9:01 pm
- Forum: General Programming
- Topic: Component Available for specific OLED???
- Replies: 5
- Views: 4520
Re: Component Available for specific OLED???
Edit Here attached above is a simple program to try and get the display to work... but nothing is happening to the display. I've tried both parallel and buffered components. I think parallel is the correct one. I feel like it has to deal with the pin configurations/connections to enable the screen....
- Fri May 31, 2019 9:33 pm
- Forum: General Programming
- Topic: Component Available for specific OLED???
- Replies: 5
- Views: 4520
Re: Component Available for specific OLED???
Thank you so much Ben, I'll let you know if it works!
- Fri May 31, 2019 5:38 pm
- Forum: General Programming
- Topic: Component Available for specific OLED???
- Replies: 5
- Views: 4520
Re: Component Available for specific OLED???
Awesome thank you I will definitely give it a go! Is it the SSD1322 Buffered or SSD1322 Parallel?Benj wrote:SSD1322 display IC so this is worth a go
What is the difference between the two or does it not necessarily matter? Thanks again
- Thu May 30, 2019 7:42 pm
- Forum: General Programming
- Topic: Component Available for specific OLED???
- Replies: 5
- Views: 4520
Component Available for specific OLED???
Hello, I am attempting to program this 128x64 OLED Graphics display board through Flowcode V8. Is there a component that I can use in order to use this display or will I have to code all of it myself? I can't seem to find a component for it yet. Thanks! Features -4-bit Grayscale OLED Graphics displa...
- Wed Mar 27, 2019 9:00 pm
- Forum: General Programming
- Topic: ADC Channels pulling relatively same values
- Replies: 1
- Views: 2524
ADC Channels pulling relatively same values
In Flowcode V8, on my atmega2560 I am pulling in values from each analog input(0-3). I am reading the adc for its corresponding channel(correctly). But when I am looking at-as an example-the first one(PF0), and it gives me 512, all the other channels follow similarly to that like their connected to ...
- Mon Mar 25, 2019 9:57 pm
- Forum: Flowcode V8
- Topic: Issues with reading Analog Inputs & EESAVE
- Replies: 7
- Views: 3951
Re: Issues with reading Analog Inputs & EESAVE
Oh gotcha, no I do not have problems between them two. At least not yet hahaviktor_au wrote:Slave N1 means that you have slave number one.
- Mon Mar 25, 2019 9:11 pm
- Forum: Flowcode V8
- Topic: Issues with reading Analog Inputs & EESAVE
- Replies: 7
- Views: 3951
Re: Issues with reading Analog Inputs & EESAVE
Do you have any problems between the Modbus Master and Slave N1 on Mega2560? I'm not sure I understand the question Viktor... what do you mean when you say "N1"? That is strange how I had that global/local variable of return val. I altered that decision statement where it looks at the global RetVal...
- Fri Mar 22, 2019 9:48 pm
- Forum: Flowcode V8
- Topic: Issues with reading Analog Inputs & EESAVE
- Replies: 7
- Views: 3951
Re: Issues with reading Analog Inputs & EESAVE
What is the reason you have chosen this clock speed? Hey Viktor! I'm not entirely sure, we first had it at 16000000 Hz but then we were just recommended to change that setting to 14745600 Hz. I managed to get the ADC working correctly! I was using the incorrect ADC component in flowcode. However, I...
- Thu Mar 21, 2019 9:04 pm
- Forum: Flowcode V8
- Topic: Issues with reading Analog Inputs & EESAVE
- Replies: 7
- Views: 3951
Issues with reading Analog Inputs & EESAVE
Hello, I am having difficulty reading analog inputs from an ATMEGA2560. In the Flowcode project I've attached, I have two methods of going at it, 1-by utilizing the Modbus slave component "ReadAnalogueInput" and 2-through cal_adc enable/sample/disable. When I test AI0, nothing shows up. Can someone ...
- Thu Feb 21, 2019 6:46 pm
- Forum: General Programming
- Topic: Problem Reading Modbus Registers
- Replies: 5
- Views: 3706
Re: Problem Reading Modbus Registers
Currently using Flowcode V8...Benj wrote: What version of Flowcode are you using?
- Tue Feb 19, 2019 7:17 pm
- Forum: General Programming
- Topic: Problem Reading Modbus Registers
- Replies: 5
- Views: 3706
Re: Problem Reading Modbus Registers
Hi Benj, The program compiles fine and it uploads to the board fine, then I open up the Modbus client-server and set up the registers from 40001-so on. When I run it to read the Modbus slave registers... no values appear, no reply is returned, nothing is coming back through the RX... :( [Edit]Is it ...
- Mon Feb 18, 2019 7:40 pm
- Forum: General Programming
- Topic: Problem Reading Modbus Registers
- Replies: 5
- Views: 3706
Problem Reading Modbus Registers
I am having an issue working on this MEGA2560 board trying to read Modbus Slave registers. The strange deal about it, is that everything looks fine; the slave addressing, baud rate, COM Port, addressing of registers. I've tested it with another MEGA2560 board and same result. Could it potentially be...
- Fri Feb 15, 2019 3:19 pm
- Forum: Flowcode V6
- Topic: LUT Component not working with PIC30F3012
- Replies: 11
- Views: 8201
Re: LUT Component not working with PIC30F3012
Okay I'll do that, remove the interrupt and the UART Handler macro and see how that goes. Because I'm not able to read the modbus registers. And I'm using Flowcode V8 -So I removed the interrupt, UART Handler() and took out the initialize UART0 in the macro Init_Hardware() Yet i'm still not reading ...
- Fri Feb 15, 2019 1:15 am
- Forum: Flowcode V6
- Topic: LUT Component not working with PIC30F3012
- Replies: 11
- Views: 8201
Re: LUT Component not working with PIC30F3012
The Modbus Slave uses an RX interrupt, and as this is set for Channel 1 it uses UART RX0. Your compiler error is due to the setup in main of another interrupt for UART RX0 The two cannot coexist I'm running into this issue once more where the compiler comes back with "error: redefinition of '__vect...
- Fri Jan 25, 2019 3:33 pm
- Forum: General Programming
- Topic: Read words in memory bank & bit mask data
- Replies: 5
- Views: 4108
Re: Read words in memory bank & bit mask data
No :/ I do not have a library for that... I do have a module where it reads the data I believe, but do not have it where it reads the specified address' and then specific bits in there.Benj wrote:Do you have a library you are using to help you design the code?
- Fri Jan 25, 2019 5:48 am
- Forum: General Programming
- Topic: Read words in memory bank & bit mask data
- Replies: 5
- Views: 4108
Re: Read words in memory bank & bit mask data
Hey Benj! Thanks for your response, isn't "readregister" a command/routine from a component though? The device I'm using an m6e RFID; reading tags. I do not believe there is a built-in component for that particular device. If I can use that readregister routine, then your provided example would fit ...
- Thu Jan 24, 2019 7:07 pm
- Forum: General Programming
- Topic: Read words in memory bank & bit mask data
- Replies: 5
- Views: 4108
Read words in memory bank & bit mask data
Hello! I am trying to read in a 48-bit number in the last four words of the User Memory Bank(Bank 3h-words 8h, 9h, Ah, and Bh) and it then needs to be extracted via bit masking into 5 separate words. The attachment shows what I'm talking about. Can someone point me in the right direction in Flowcode...
- Sat Dec 29, 2018 6:52 pm
- Forum: General Programming
- Topic: Frequency not being read(at all maybe)?
- Replies: 13
- Views: 6782
Re: Frequency not being read(at all maybe)?
Did you post the correct flowchart as you have not got any arrays set up? Ahh it must not then, I've been out for a while & asked a friend to send me the file on my home computer. Guess it was the wrong file. I won't be back in the office until Jan 2nd. So i'll pull it up then Martin! If i still ca...
- Wed Dec 26, 2018 6:07 pm
- Forum: General Programming
- Topic: Frequency not being read(at all maybe)?
- Replies: 13
- Views: 6782
Re: Frequency not being read(at all maybe)?
Can you post your flowchart so we can see how you have implemented arrays? Sorry for the late reply, but here it is... I might just end up accepting and taking the first value since it comes out always within 2 Hz (an example is that the first reading might be 60 Hz, then next maybe 61, and next 62...
- Sat Dec 22, 2018 12:10 am
- Forum: General Programming
- Topic: Frequency not being read(at all maybe)?
- Replies: 13
- Views: 6782
Re: Frequency not being read(at all maybe)?
Last question for awhile haha, how can I manage to store the Hz value into a index of an array?? When I attempt to do so, the array catches the first value that it's given properly then takes that first index(first reading) value and continues to place them into the rest of the array which is size 1...
- Fri Dec 21, 2018 8:30 pm
- Forum: General Programming
- Topic: Frequency not being read(at all maybe)?
- Replies: 13
- Views: 6782
Re: Frequency not being read(at all maybe)?
The maybe an issue with values flashing on the display? If that is the case then instead of using clear, it will be better to remove the ClearDispaly within WriteDisplay Macro, then add spaces after the HZ so you have something like Print "HZ " instead of Print "HZ" I do have the values flashing on...
- Fri Dec 21, 2018 3:16 pm
- Forum: General Programming
- Topic: Frequency not being read(at all maybe)?
- Replies: 13
- Views: 6782
Re: Frequency not being read(at all maybe)?
Things only get changed if TimerTick = 61??? but TimerTick is never incremented. In IOCB PinChange is incremented (edit - This is counting the frequency - increment TimerTick in the timer interrupt) . Martin So your saying I need to add a counter to TimerTick? Would I add that to the interrupt rout...
- Fri Dec 21, 2018 12:24 am
- Forum: General Programming
- Topic: Frequency not being read(at all maybe)?
- Replies: 13
- Views: 6782
Frequency not being read(at all maybe)?
Hello friends, So in this program I have these interrupts to find frequency, however it is not working when connected to the hardware. The display kept showing 0 when it shouldn't have. The interrupt is set at PortB0 which should be the correct one from the sensor output. Can anyone see why the prog...
- Wed Dec 19, 2018 9:12 pm
- Forum: General Programming
- Topic: SSD1306_i2c display not working
- Replies: 23
- Views: 10853
Re: SSD1306_i2c display not working
I toggled the ports of data and clock from 0 and 1 and saw it toggle as expected. So that means the microprocessor is working and the program is getting through. That bit shifting you mentioned earlier "0x3c << 1", I tried with my address and nothing. I'm using FC8... Turns out it was the part displ...
- Wed Dec 19, 2018 7:26 pm
- Forum: General Programming
- Topic: SSD1306_i2c display not working
- Replies: 23
- Views: 10853
Re: SSD1306_i2c display not working
So I tested it with the new display... still nothing. Then I took it to the oscilloscope and theres no SDA or SCL going through... Do you have any idea why? It's set to Port C 4 & 5 respectively as it should. The slave address for the display seems correct. Maybe it has something to do with the boar...