Search found 165 matches

by p0lyg0n1
27 Apr 2018 18:44
Forum: Z-Uno
Topic: IRcontroller parameters
Replies: 3
Views: 763

Re: IRcontroller parameters

1) IR_FLAGS_INPUT_DETECTCARRIER - Hardware IR controller can detect carrier if you use "raw" receiver (without demodulator). It's not applicable for receivers like TSOP7000 with fixed frequency. 2) IR_FLAGS_OUTPUT_HIGHDRIVE drives up to 12 mA (8mA without this flag)on each IR output pin (you can use...
by p0lyg0n1
27 Apr 2018 17:35
Forum: Z-Uno
Topic: FLiRS - zunoSetBeamCountWU() question
Replies: 6
Views: 1034

Re: [solved] FLiRS - zunoSetBeamCountWU() question

Hi, I have an idea. Try to move logic inside the loop instead of handler. Make a small delay in the loop ~5 microseconds. I'll try to check the internals of FLIRS using your sample code till the next release.
by p0lyg0n1
30 Mar 2018 16:31
Forum: Z-Uno
Topic: New 2.1.1 release!
Replies: 13
Views: 4693

Re: New 2.1.1 release!

Z-Uno don't have WProgram.h. It's a very old header from Wiring. Use "Arduino.h" instead.
by p0lyg0n1
30 Mar 2018 15:31
Forum: Z-Uno
Topic: No Random() function in Z-Uno?
Replies: 6
Views: 2399

Re: No Random() function in Z-Uno?

Here is an example:

Code: Select all

void setup() {
  Serial.begin();
}
void loop() {
  Serial.println(rand()%100);
  delay(1000);
}
by p0lyg0n1
30 Mar 2018 15:27
Forum: Z-Uno
Topic: HC-SR04 + DHT11 in same project
Replies: 2
Views: 710

Re: HC-SR04 + DHT11 in same project

Please use the constants here. I have found that global "s_pin" variables don't work right at this moment. That sketch have to work. // add library #include "ZUNO_DHT.h" // pin connection #define DHTPIN 9 ZUNO_SETUP_CHANNELS( ZUNO_SENSOR_MULTILEVEL( ZUNO_SENSOR_MULTILEVEL_TYPE_DISTANCE, 0, // scale ...
by p0lyg0n1
19 Mar 2018 14:57
Forum: Z-Uno
Topic: Help with my First Project
Replies: 3
Views: 871

Re: Help with my First Project

Hi, What is your main problem? You didn't define getters getterAmp1/getterAmp2/getterAmp3/getterAmp4 as I see. Looks like you can stuck with this https://forum.z-wave.me/viewtopic.php?f=3427&t=25646&start=10 . We have the issue with ADC when you try to use more then one channel. We add this to roadm...
by p0lyg0n1
19 Mar 2018 02:47
Forum: Z-Uno
Topic: Z-Uno Tricks & Hacks. Dynamic channels. N-channel relay(switch) sketch.
Replies: 1
Views: 910

Z-Uno Tricks & Hacks. Dynamic channels. N-channel relay(switch) sketch.

Hi, I'll try to share with community some kind of my test-code/sketches that I collected/wrote during the work on Z-Uno project. It could be helpful for some cases. In most cases I have not time to make a full-size tutorial or a blog posts. So, it will be a brief format of the forum posts. The main ...
by p0lyg0n1
19 Mar 2018 01:50
Forum: Z-Uno
Topic: Derived Classes error
Replies: 2
Views: 749

Re: Derived Classes error

Hi, There are two errors. First one is that you have to return a value in Switch::changeValue. It have to be something like: // ... uint8_t Switch::changeValue(int v) { value = v; return v; } Unfortunately the second error is inside the translator. Thanks to Your code, we were able to find an old bu...
by p0lyg0n1
13 Mar 2018 19:06
Forum: Z-Uno
Topic: Z-uno is running much slower on PC power than on charger
Replies: 19
Views: 3713

Re: Z-uno is running much slower on PC power than on charger

The same results. 2-nd is with external power supply connected to USB. The smallest time period means highest frequency.
by p0lyg0n1
13 Mar 2018 15:02
Forum: Z-Uno
Topic: Z-uno is running much slower on PC power than on charger
Replies: 19
Views: 3713

Re: Z-uno is running much slower on PC power than on charger

Hi, I have checked this issue finally. I slightly modified your source: // LED pin number #define LED_PIN 13 #define START_CODE ((char)0xA9) #define END_CODE ((char)0x9A) static byte lastValue = 0; static byte currentValue = 0; //static const char onCmd[] = { START_CODE, 0x17, 0x2E, 0x00, 0x00, 0x00...