Search found 87 matches

by kennethnilsen69
Sun Aug 26, 2018 9:44 pm
Forum: Flowcode V7
Topic: ECIO40P16 and Internal CAN truble
Replies: 16
Views: 2768

ECIO40P16 and Internal CAN truble

Hi, I need some help, I can not communicate with a TJA 1050 CAN Controller with internal CAN1 and CAN2 I'm used to using Arduino and external SPI module and it worked well but I want to try an ECIO40P16 because it has 2 Internal ECAN. I use the CAN (Internal, MCP2515) component in Flowcode 7 CAN1 TX...
by kennethnilsen69
Mon Feb 26, 2018 1:06 pm
Forum: General Programming
Topic: CAN bus and SD card over the same SPI channel
Replies: 3
Views: 1128

Re: CAN bus and SD card over the same SPI channel

The hardware I use is: Arduino Mega 2560 R3 Can Module is MCP2515 and TJA1050, 20mhz and baud 500 Flowcode 7 I have never used an SD card reader before so this will be new to me, but I have ordered 20 pcs of this one https://www.ebay.com/itm/5-x-Micro-SD-SDHC-Card-TF-Card-Reader-Adapter-SPI-Driver-M...
by kennethnilsen69
Fri Feb 23, 2018 8:27 pm
Forum: General Programming
Topic: CAN bus and SD card over the same SPI channel
Replies: 3
Views: 1128

Re: CAN bus and SD card over the same SPI channel

Is there nobody who knows anything about this?
by kennethnilsen69
Wed Feb 21, 2018 10:31 pm
Forum: General Programming
Topic: CAN bus and SD card over the same SPI channel
Replies: 3
Views: 1128

CAN bus and SD card over the same SPI channel

Hi, I want a CAN bus card and an SD card reader on the same SPI bus. is this possible? I want to save about 32000 CAN messages in a file on an SD card and send them over the CAN bus. so it must be able to read the SD card and send the message one by one at the same time. So I will: read a message fr...
by kennethnilsen69
Sat Jan 13, 2018 2:34 pm
Forum: Feature requests
Topic: Blynk Components
Replies: 2
Views: 1669

Blynk Components

It had been amazing with Blynk components in flowcode.
Is this something you plan or work on in the future?

http://www.blynk.cc/
by kennethnilsen69
Tue Mar 28, 2017 12:02 pm
Forum: Flowcode V6
Topic: Can I use this in Flowcode?
Replies: 1
Views: 1804

Can I use this in Flowcode?

I would like to expand with more inputs and found this.
http://mayhewlabs.com/products/arduino-mux-shield
Can I use this in Flowcode?

If not. is there are other options that do the same job and that works with Flowcode?


Thanks
Kenneth
by kennethnilsen69
Thu Feb 09, 2017 12:02 am
Forum: General Programming
Topic: Is there someone who is good at calculation here?
Replies: 2
Views: 2216

Re: Is there someone who is good at calculation here?

Hi Martin sorry for some sent replies and I thank you for your suggestion. But this only works if you know RPM2.
I found a different way to solve it so my question is no longer relevant But thanks anyway :-)


Kenneth
by kennethnilsen69
Thu Jan 19, 2017 3:22 pm
Forum: General Programming
Topic: Is there someone who is good at calculation here?
Replies: 2
Views: 2216

Is there someone who is good at calculation here?

jaja you do not have to be good. just a little better than me and it does not take much to be :-) I have a calculation I can not figure it out. RPM1 125 (byte) RPM2 15 (byte) RPM (Int) RPM = ((RPM1 * 160) + (RPM2 / 1.6)) - 20009 RPM is then 0 (0,375) How can I do this in reverse? if RPM is 0 how do ...
by kennethnilsen69
Mon Dec 19, 2016 5:42 pm
Forum: Flowcode V6
Topic: Calculatino problems
Replies: 3
Views: 2275

Re: Calculatino problems

Thanks but I solved it by using Floating point and a str instead of Init

Var 1 = 1 (byte)
Var 2 = 144 (byte)

Var3 is Floating point
var4_str[4]
calculation is then:

Var3 = (Var2 / 400) + (Var1 * 100 * 400 * 0.0016)

Var4_str = FloatToString$ (Var3)

Then Var_str is 1.00 just as i want :-)

Thanks
by kennethnilsen69
Mon Dec 19, 2016 2:01 pm
Forum: Flowcode V6
Topic: Calculatino problems
Replies: 3
Views: 2275

Calculatino problems

I have a calculation I did not get. Var 1 = 1 (Byte) Var 2 = 144 (Byte) Var3 is Int calculation is: Var3 = (Var2 / 400) + (Var1 * 100 * 400 * 0.0016) This should be 1 but I get 0 then I think that the problem is maybe decimals. so I try: Var3 = ((Var2 * 100/400) + (Var1 * 100 * 400 * 0.0016)) / 100 ...
by kennethnilsen69
Thu Dec 15, 2016 2:49 pm
Forum: Flowcode V6
Topic: CAN-bus reading buffer Data problems
Replies: 9
Views: 4412

Re: CAN-bus reading buffer Data problems

LeighM wrote:Thanks for your work on this, I've now found and fixed the bug.
Updated CAN component attached.
Please replace the CAN component found in your Flowcode6\components directory.


Thanks so much LeighM. It is much better now :-)


Kenneth
by kennethnilsen69
Wed Dec 14, 2016 9:50 pm
Forum: Flowcode V6
Topic: CAN-bus reading buffer Data problems
Replies: 9
Views: 4412

Re: CAN-bus reading buffer Data problems

I tested just with an EB018 E-blocks CAN bus board which I had lying in a drawer.
I get the same problem with it
by kennethnilsen69
Wed Dec 14, 2016 4:33 pm
Forum: Flowcode V6
Topic: CAN-bus reading buffer Data problems
Replies: 9
Views: 4412

Re: CAN-bus reading buffer Data problems

Here are pictures of the chips
by kennethnilsen69
Wed Dec 14, 2016 4:17 pm
Forum: Flowcode V6
Topic: CAN-bus reading buffer Data problems
Replies: 9
Views: 4412

Re: CAN-bus reading buffer Data problems

Sorry I forgot to say that I of course have switched to 20Mhz crystal on my unit. if it has a genuine Microchip or not I do not know. is there any way I can confirm that? Hi, Yes, I've checked our component code and I cannot see any problems, the MCP2515 should not be updating the receive buffer wit...
by kennethnilsen69
Wed Dec 14, 2016 11:50 am
Forum: Flowcode V6
Topic: CAN-bus reading buffer Data problems
Replies: 9
Views: 4412

Re: CAN-bus reading buffer Data problems

Hi LeighM and thank you for your answers :-) But it reads the data buffer before it sends it so it should anyway have the right data for right ID to send when it has time to send it. it might not have time to read all the data but the data it reads should be correct. I'm not so worried that it does ...
by kennethnilsen69
Wed Dec 14, 2016 2:39 am
Forum: Flowcode V6
Topic: CAN-bus reading buffer Data problems
Replies: 9
Views: 4412

CAN-bus reading buffer Data problems

I have problems with message data comes in the wrong ID message. I'll create a program that sniffing a CAN-bus and sends all received messages out via RS232 port. I am sending 6 CAN messages from my PC and when I send all message with 300ms cycle time then it reads the data buffer properly. in my ex...
by kennethnilsen69
Tue Dec 06, 2016 8:39 pm
Forum: Flowcode V6
Topic: Winstar and RayStar OLED 2004A whit WS0010 controller
Replies: 4
Views: 3574

Re: Winstar and RayStar OLED 2004A whit WS0010 controller

yes Benj you are the king :-). The table worked perfectly on Adafurit components. Moving corsor in X and not Y worked perfectly. :-) I have a small isju with these: every time I send the program over to the Arduino I must disconnect the power completely on it. Otherwise the display will not work pro...
by kennethnilsen69
Tue Dec 06, 2016 1:36 pm
Forum: Flowcode V6
Topic: Winstar and RayStar OLED 2004A whit WS0010 controller
Replies: 4
Views: 3574

Re: Winstar and RayStar OLED 2004A whit WS0010 controller

Is there no one who knows anything about this?

Thanks

Kenneth
by kennethnilsen69
Thu Dec 01, 2016 12:21 pm
Forum: Flowcode V6
Topic: Winstar and RayStar OLED 2004A whit WS0010 controller
Replies: 4
Views: 3574

Winstar and RayStar OLED 2004A whit WS0010 controller

Hi I have some trouble getting text on more than 2 lines on these 4x20 OLED screens. on both Winstar and RayStar 4x20 displays whit WS0010 controller. If I use LCD 4x20 (Adafruit, OLED) component I get the following error: Line 1 comes on line 1 (as it should) Line 2 coming on line 2 (as it should) ...
by kennethnilsen69
Tue Oct 04, 2016 5:15 pm
Forum: Flowcode V6
Topic: LCD (i2c) component. is this possible?
Replies: 5
Views: 3883

Re: LCD (i2c) component. is this possible?

Thanks Benj :-) this worked perfectly :-) Hello, I have looked at the component source, there is a SetI2CAddress macro but it had not been exposed in the component. So I have now exposed the macro for you and you should be able to access it by copying the file below to your "Flowcode 6/Componen...
by kennethnilsen69
Thu Sep 29, 2016 7:43 pm
Forum: Flowcode V6
Topic: LCD (i2c) component. is this possible?
Replies: 5
Views: 3883

LCD (i2c) component. is this possible?

I'll try to explain what I want. at the start of the program I want to auto search for i2s address and store the result in EEprom. So far all good. (here I have lcd_I2C1 as a dummy to be able to find a addreses). Here comes the problem. I now want to start the lcd_I2C2 component with LCD Address fro...
by kennethnilsen69
Mon Jul 18, 2016 8:08 am
Forum: Flowcode V6
Topic: lcd_i2c component
Replies: 1
Views: 1515

lcd_i2c component

Hi I need to change I2C address and will then get this from a variable. the reason is that my I2C chips do not always have the same address as I will then make a autosearch for the address and store it in a variable so that I then can use it lcd_I2C address. autosearch part I get but I am unable to ...
by kennethnilsen69
Thu Jun 23, 2016 4:18 pm
Forum: Flowcode V6
Topic: Can I use 20*4 OLED WEH002004A/B with FC6?
Replies: 2
Views: 1237

Re: Can I use 20*4 OLED WEH002004A/B with FC6?

Thanks Benj :-) then I shall I order a pair for testing :-)))