Search found 342 matches

by viktor_au
Tue Nov 22, 2022 4:42 am
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

Re: HC-12 433 mHz module + Ard + Kerui PIR

Hi Martin B5 or D2? --------- D2 is connected to INT0 by default, you are correct. I didn't use B5 at all, as I used ssd1306. I have to update the 'I have to change pin B5 to pin d2'. I didn't use B5 as an input, just used B5 (calculation icon) to change it to D2 to pull the input high. Saved some t...
by viktor_au
Mon Nov 21, 2022 10:39 pm
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

Re: HC-12 433 mHz module + Ard + Kerui PIR

Hi Martin Re: Did you get the code I posted to return anything? I have to change pinB5 to pinD2 in your code as D2 is connected to output of SYN470R Rf chip. I run this code on Nano a few times by using the Tx remote controller with 24-bit code (1527 protocol). No return. Re: It should be possible t...
by viktor_au
Mon Nov 21, 2022 7:43 am
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

Nano + RCSwitch

Hi
Will look at RCSwitch IDE library
by viktor_au
Mon Nov 21, 2022 3:52 am
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

Re: HC-12 433 mHz module + Ard + Kerui PIR

Thanks Martin

On Ard board LED B5 for debugging only: Understood
-------------
When I read the RCSwitch library I noted that after 1st high was detected system was waiting for the 2nd High.
by viktor_au
Sun Nov 20, 2022 10:32 pm
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

Re: HC-12 433 mHz module + Ard + Kerui PIR

Hello Thank you guys for looking at this issue I am in a motorhome (right now) 220 km away from Adelaide. I don't have access to my scope, etc. However after the last trip to Adelaide and a new PCB for Nano+rxb12 I can program it and test it. Interrupt IOT to IOC P ort IOC set to +ve trigger may be ...
by viktor_au
Sun Nov 20, 2022 9:49 am
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

Re: HC-12 433 mHz module + Ard + Kerui PIR

Hello Martin Re: j1850 protocol I've read this post. Before I move to C-code I would like to use the Timer component... It works in simulation. However not in hardware. ------------- The rxb12 433mHz receiver output of SYN470R Rf chip has apprx 2.4v output. It is the result of Automatic Gain Control...
by viktor_au
Sun Nov 20, 2022 5:42 am
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

FC8 Timer component question

When I have to measure microseconds how good the Timer component is?
I noticed on forum that some people used a C-code.
Is it a way to do it?
by viktor_au
Sat Nov 19, 2022 11:20 pm
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

Tx test/sim TTL signal

Tx test/sim TTL signal Hello Thank you chipfryer27 for spending so much time in the Evil Lab. Where is Jockland? Is it in Scotland? No wonder it is so called there. We have spring in South Australia now. A lot of storms, wind and rain. I feel like I am in Scotland. Back to Evil Lab project. I don't...
by viktor_au
Sat Nov 19, 2022 11:15 pm
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

D2 pin change and slow interrupt

D2 pin change and slow interrupt Hi First of all thanks to mnf for time and support. IN0 is too slow HC-12.fcfx program uses (Nano) monitoring the D2 INT0 (Timer0) interrupt. INT0 'ticks' 15Hz/Second or apprx 70mS (please correct me). However coming from rxb12 433mHz receiver pack of pulses lengh =...
by viktor_au
Sat Nov 19, 2022 6:42 am
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

Re: HC-12 433 mHz module + Ard + Kerui PIR

About sampling ----------------------- You have suggested: For detecting a "0" (h - L - L - L) Detect high (beginning of pulse). Time = 0 Wait 1/2 time period and sample (Time = 175uS). Value = 1 Wait time period and sample (Time = 525uS). Value = 0 Wait time period and sample (Time = 875uS). Value ...
by viktor_au
Sat Nov 19, 2022 6:23 am
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

Re: HC-12 433 mHz module + Ard + Kerui PIR

I am not sure how to run interrupt on Nano D2 input to check on 350uS if interrupt freq is 15Hz?
15 Hz = 66666uS
-------------------
Need to read again about mentioned by you about sampling...
by viktor_au
Thu Nov 17, 2022 10:07 pm
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

Re: HC-12 433 mHz module + Ard + Kerui PIR

Hi
Thank you for the link.
by viktor_au
Thu Nov 17, 2022 12:44 am
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

Re: HC-12 433 mHz module + Ard + Kerui PIR

Hi

What to do?
One way -> use counter
2nd way (as you suggested) ->sample in the middle of a time period and take this value.
by viktor_au
Wed Nov 16, 2022 2:58 am
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

Re: HC-12 433 mHz module + Ard + Kerui PIR

Hi Nano should be able to decode the full 24-bit string though. It does. I used RCSwitch library and it works. Nano does a job. 350uS pulse length is the length of a bit / 4... I believe it is. If one bit = 4 clocks, the Preamble High pulse = 350uS+31 Low(350*31), the High bit pulse = 350*3=1050uS+ ...
by viktor_au
Tue Nov 15, 2022 10:01 pm
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

Re: HC-12 433 mHz module + Ard + Kerui PIR

Hi About the pulse length... RCSwitch library has file RCSwitch.cpp Notice 1st value in string of values: 350uS for protocol 1 (24 bit) ------------------------------------------------------------------------- Format for protocol definitions: * {pulselength, Sync bit, "0" bit, "1" bit, invertedSigna...
by viktor_au
Mon Nov 14, 2022 3:01 am
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

Re: HC-12 433 mHz module + Ard + Kerui PIR

Thank you chipfryer27. The last few days I was reading about some different protocols for 433.9mHz rf. There are a lot of articles on www, however most of them reapeat each other focusing on using some Arduino RF libraries without paying attention to protocols, pulse width, etc. I have checked brief...
by viktor_au
Sat Nov 12, 2022 6:10 am
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

Rx the TTL data from 433mHz sensor

Working on a code for 433mHz sensor data( rx only). I used the IDE Arduino with RCSwitch library and looks like it works. I can receive PIR information. Now I need to make the FC8 program. The TTL data format is: protocol 1 pulselength = 350, Sync bit = 1, 31 "0" bit = 1, 3 "1" bit = 3, 1 nvertedSig...
by viktor_au
Fri Oct 28, 2022 10:27 pm
Forum: Flowcode V8
Topic: String to num 1st Zero lost
Replies: 3
Views: 7097

Re: String to num 1st Zero lost

What about using Right$ in a calculation?
-------------------------------------------------------
Sure... but I wanted the integer as 077.

The only way of displaying a leading zero is in a string format
Looks like I have to flag the converted integer 77 (from "077" string) as negative.

Thanks
by viktor_au
Fri Oct 28, 2022 5:33 am
Forum: Flowcode V8
Topic: String to num 1st Zero lost
Replies: 3
Views: 7097

String to num 1st Zero lost

Hello I found some answer for question below ----------------------------------------------------------: SteveM » Tue Jun 10, 2014 Loosing 1st zero during converstion of num to string There's no way to do that directly, because the values are stored within the chip as fixed length binary numbers. e....
by viktor_au
Fri Oct 28, 2022 3:51 am
Forum: Flowcode V6
Topic: LCD 2x16 I2C backlight
Replies: 17
Views: 27777

Re: LCD 2x16 I2C backlight

Glad it works.
by viktor_au
Thu Oct 27, 2022 12:19 am
Forum: Flowcode V6
Topic: LCD 2x16 I2C backlight
Replies: 17
Views: 27777

Re: LCD 2x16 I2C backlight

Hello
Please have a look at the attached file.
I am not sure if that what you are after.
by viktor_au
Tue Oct 25, 2022 10:59 pm
Forum: Flowcode V6
Topic: LCD 2x16 I2C backlight
Replies: 17
Views: 27777

Re: LCD 2x16 I2C backlight

Hello
I have a question
Does the BacklightControl macro control the state of on-board of i2c module transistor?
Is it possible to show this macro?
Thanks
by viktor_au
Mon Oct 24, 2022 11:53 pm
Forum: Flowcode V6
Topic: LCD 2x16 I2C backlight
Replies: 17
Views: 27777

Re: LCD 2x16 I2C backlight

by viktor_au
Wed Oct 12, 2022 4:18 am
Forum: Flowcode V6
Topic: Arduino nano, multiple DS18B20 problem
Replies: 16
Views: 22837

Re: Arduino nano, multiple DS18B20 problem

Hello Ule
Can you ask your friend to 'ping' the bus before
the program will access sensor N6?
by viktor_au
Mon Oct 10, 2022 11:32 pm
Forum: Flowcode V8
Topic: HC-12 433 mHz module + Ard + Kerui PIR
Replies: 94
Views: 486122

Binary to decimal problem

Found the solution