Search found 209 matches

by mikn
Fri Jul 01, 2016 1:25 am
Forum: Flowcode V6
Topic: PROTOCOL NEC HELP
Replies: 18
Views: 14239

Re: PROTOCOL NEC HELP

Let me get back to this. I have played with duties and didn't succeed with ir led power. So I put back RC5 component and played with it's settings. Finally it worked with all Software (transmit mode and modulation) and I have full power as with Arduino code and no losses. It's with Arduino pro mini ...
by mikn
Tue Jun 28, 2016 3:12 pm
Forum: Flowcode V6
Topic: PROTOCOL NEC HELP
Replies: 18
Views: 14239

Re: PROTOCOL NEC HELP

thanks for help after minor changes to your code I've got it working created new macro SendPWM with PWM component and changed output in your code to this macro, which swithces PWM on and off. 1.GIF 2.GIF just tested, everything works ok. the only thing is the distance. with arduino TX code I get rea...
by mikn
Tue Jun 28, 2016 12:07 pm
Forum: Flowcode V6
Topic: PROTOCOL NEC HELP
Replies: 18
Views: 14239

Re: PROTOCOL NEC HELP

understand now. the problem is that i have used constant light instead of 38khz modulated signal. and now I understand why you use two different pins in IR settings PWM and Output. I use simple IR diode connected to D3 and GND. With arduino code it works well, now need to run with FC. ps: check the ...
by mikn
Tue Jun 28, 2016 2:15 am
Forum: Flowcode V6
Topic: PROTOCOL NEC HELP
Replies: 18
Views: 14239

Re: PROTOCOL NEC HELP

Hello, Here is an example that should help to get you started. I simply broke down the protocol into sections and created a macro to output each of the sections. NEC.fcf Hi Benj, Tried to run this on Arduino Pro 328 5v, but changed output to D3. The led is blinking (I look via camera) but the recei...
by mikn
Sun Jun 26, 2016 1:22 am
Forum: Flowcode V6
Topic: Arduino Programming In Flowcode v6
Replies: 116
Views: 219361

Re: Arduino Programming In Flowcode v6

Please help me to connect two arduino pro mini 5v via infrared link. One board (RX) is loaded with arduino code: #include "IRremote.h" IRrecv irrecv(11); // decode_results results; void setup() { Serial.begin(9600); // irrecv.enableIRIn(); // } void loop() { if (irrecv.decode(&results)) // { Serial....
by mikn
Wed Jun 22, 2016 12:31 pm
Forum: Bug reports
Topic: IR sensor error
Replies: 2
Views: 6403

Re: IR sensor error

that was just a test with led, no actions with ir receiver. and yes i have added some functions and it compiles ok. just thought that if i have components on dashboard and don't use them it must compile anyway...
by mikn
Tue Jun 21, 2016 11:12 pm
Forum: Bug reports
Topic: IR sensor error
Replies: 2
Views: 6403

IR sensor error

i use arduino pro mini 5v and ir sensor connected to B3 (pin 11) irtest.fcfx here's what i get when try to compile and load to arduino D:\Arduino\test>"C:\PROGRA~1\FLOWCO~2\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega328 -Os -funsigned-char -o "D:\Arduino\test\irtest.elf" "D:\Arduino\test\...
by mikn
Mon May 23, 2016 8:17 pm
Forum: General Programming
Topic: Nokia 5110 gLCD
Replies: 8
Views: 14115

Re: Nokia 5110 gLCD

Will this library work with FC 6?
Where should I put the file?
by mikn
Tue Apr 19, 2016 10:31 pm
Forum: Flowcode V6
Topic: Read data from MPU-6050 accelerometer using I2C
Replies: 4
Views: 7624

Re: Read data from MPU-6050 accelerometer using I2C

Hi, Benj I have downloaded your example from your blog with MPU workflow. All things seems to be working at my side until I try to use FilterPItch and FilterRoll Here are values which I get x:-464 y:832 z:7368 R:-69.334846 P:-169199.828125 x:-492 y:832 z:7356 R:-63.843418 P:-169270.093750 x:-460 y:7...
by mikn
Wed Apr 06, 2016 6:11 pm
Forum: Bug reports
Topic: arduino pro mini
Replies: 4
Views: 7960

Re: arduino pro mini

Yeah, it works now. Thank you very much for quick response!
by mikn
Wed Apr 06, 2016 4:05 pm
Forum: Bug reports
Topic: arduino pro mini
Replies: 4
Views: 7960

Re: arduino pro mini

Here's what I get avrdude.exe: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.01s avrdude.exe: Device signature = 0x1e950f avrdude.exe: Expected signature for ATmega328 is 1E 95 14 Double check chip, or use -F to override...
by mikn
Tue Apr 05, 2016 11:52 am
Forum: Flowcode V6
Topic: servo controller error - Resolved
Replies: 2
Views: 2989

Re: servo controller error

Thank you, everything is ok now after Initialize added.
by mikn
Tue Apr 05, 2016 3:17 am
Forum: Flowcode V6
Topic: servo controller error - Resolved
Replies: 2
Views: 2989

servo controller error - Resolved

When I add Servocontroller and try to compile the project, I get these errors: ... D:\all.c: At top level: D:\all.c:1455: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token D:\all.c:1676: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token I don't init Serv...
by mikn
Tue Apr 05, 2016 1:39 am
Forum: Flowcode V6
Topic: help with types
Replies: 8
Views: 9236

Re: help with types

damn yes, I have fixed it.
the problem was in readtemperature macro, when I read second byte of data, Last parameter in i2c_Rxbyte was 0 instead of 1.
so next macro ReadPressure was reading completely wrong data and all calculations were wrong.
Whew.
by mikn
Mon Apr 04, 2016 10:37 pm
Forum: Flowcode V6
Topic: help with types
Replies: 8
Views: 9236

Re: help with types

here are they (marked with red + are unsigned)
4vars.gif
4vars.gif (5.91 KiB) Viewed 9156 times
by mikn
Mon Apr 04, 2016 10:06 pm
Forum: Flowcode V6
Topic: help with types
Replies: 8
Views: 9236

Re: help with types

Here's another problem. I try to calculate pressure and made calculations simple line by line But still get incorrect values. Where may be the problem? b6 = b5 - 4000 //x1=(b2 * ((b6 * b6) >> 12)) >> 11 x1 = b6 * B6 x1 = x1 >> 12 x1 = x1 * B2 x1 = x1 >> 11 //x2 = (ac2 * b6) >> 11 x2 = ac2 * B6 x2 = ...
by mikn
Mon Apr 04, 2016 4:50 pm
Forum: Flowcode V6
Topic: help with types
Replies: 8
Views: 9236

Re: help with types

finally, I've got it working

this code was with error, x1 was incremented and then used with invalid value:
x2 = mc
x2 = x2 << 11
x1 = x1 + md
x2 = x2 / x1
b5 = x1 + x2
this code worked

Code: Select all

x2 = mc
x2 = x2 << 11
x2 = x2 / (x1 + md)
b5 = x1 + x2
t=273 which is 27.3C :) yahoo!
by mikn
Mon Apr 04, 2016 3:20 pm
Forum: Flowcode V6
Topic: help with types
Replies: 8
Views: 9236

Re: help with types

same story, tried this x1 = ut - ac6 x1 = x1 * ac5 x1 = x1 >> 15 x2 = mc x2 = x2 << 11 x1 = x1 + md x2 = x2 / x1 b5 = x1 + x2 t = b5 t = t + 8 t = t >> 4 result ac5=25369 ac6=20378 mc=-11786 md=2595 ut=29266 t=433 i have manually calculated everything and result is 433 exactly, so I am disappointed ...
by mikn
Mon Apr 04, 2016 1:17 pm
Forum: Flowcode V6
Topic: help with types
Replies: 8
Views: 9236

help with types

I have arduino pro mini and bmp180 barometer. I read temperature, do calculations according to datasheet but get incorrect values. Tried different ways of calculations (separating values into different variables, changing types) but still no success. here's part of datasheet: 1datash.gif here's macr...
by mikn
Sun Apr 03, 2016 12:15 am
Forum: Bug reports
Topic: arduino pro mini
Replies: 4
Views: 7960

arduino pro mini

Hello, I have arduino pro mini 5v and it's based on atmega 328 However when I create a project and select pro mini 5v, it sets atmega 168 into general options. this also makes programmer connection to 19200 instead of 57600 and I can't program arduino from flowcode at all (but I could load hex via x...
by mikn
Fri Feb 19, 2016 6:56 pm
Forum: General Programming
Topic: How to measure pulse period?
Replies: 9
Views: 15212

Re: How to measure pulse period?

pwm output and servomotor component works great. any advices how to read pwm input from the receiver? should I use C or ASM instead of flowcode to read input?
looking for some way like pulseIn function in arduino
by mikn
Tue Jan 26, 2016 12:02 am
Forum: General Programming
Topic: How to measure pulse period?
Replies: 9
Views: 15212

Re: How to measure pulse period?

Hi guys, Working now with reading PWM, read this thread and want to clear one thing. Can you tell me how much time it takes to read the state of the pin? I have 20ms period, in which first 2ms contains pulse from 1ms to 2ms length (1000us to 2000us). (it's servomotor signal). chip is pic24fj64 runni...
by mikn
Wed Oct 28, 2015 12:59 pm
Forum: Bug reports
Topic: remove occurences doesn't work
Replies: 0
Views: 2567

remove occurences doesn't work

I want to remove all RS232 macros and remove the component 1) right-click to RS232 in project explorer 2) right-click on List occurences 3) go to Find result 4) select all occurences 5) right-click and "remove" they all remove from find result and not from the project. however, "disable/enable" work...
by mikn
Wed Oct 28, 2015 11:32 am
Forum: Feature requests
Topic: Collapse of loops,ifs..
Replies: 4
Views: 5809

Re: Collapse of loops,ifs..

just a reminder :)
by mikn
Tue Oct 27, 2015 9:17 pm
Forum: Flowcode V6
Topic: mrf49xa component
Replies: 30
Views: 22274

Re: mrf49xa component

updated the component and recompiled the receiver hex (transmitter still with old firmware and uses sync byte 85)

but receiver still receives all data even i do SetSyncPattern before Initialization (transmitter sync=85, receiver sync=87)