Search found 26 matches

by Billduck1302
Wed Oct 29, 2025 5:11 pm
Forum: General
Topic: Buzzer tones.
Replies: 7
Views: 895

Re: Buzzer tones.

Thanks again. I will try that.
Oddly enough, with the attached program, when I add 2 Buzzer components,
with different frequencies, and test it, I get the same frequency sound.
by Billduck1302
Tue Oct 28, 2025 11:18 pm
Forum: General
Topic: Buzzer tones.
Replies: 7
Views: 895

Re: Buzzer tones.

It works, thank you.
How would I go about giving the tone a duration?
Also, Is the PWM C code a component? Obviously I don't get it.
by Billduck1302
Mon Oct 27, 2025 8:43 pm
Forum: General
Topic: Buzzer tones.
Replies: 7
Views: 895

Buzzer tones.

I would like to play several notes with the buzzer component. For example, Close Encounters is 393,516,476,361,393 Hz. Sort of! I see that the buzzer frequency is a property of the component. So my question is "How can I change the frequency when running a program". The frequency is not av...
by Billduck1302
Tue Oct 14, 2025 5:48 pm
Forum: General
Topic: Contents of an OR statement
Replies: 2
Views: 2801

Contents of an OR statement

I have an if statement "If Cell_1_Voltage_Float || Cell_2_Voltage_Float <= 3.0". The intent was to terminate a process, if either cell, in a Nissan Leaf battery, fell below 3 volts, in a discharge capacity test. Well, it did not work. Instead the following "If Cell_1_Voltage_Float <= ...
by Billduck1302
Tue Oct 07, 2025 9:06 pm
Forum: General
Topic: Integer to float calculation
Replies: 3
Views: 2600

Re: Integer to float calculation

Thank you sir.
by Billduck1302
Tue Oct 07, 2025 1:30 am
Forum: General
Topic: Integer to float calculation
Replies: 3
Views: 2600

Integer to float calculation

I learned something today. Namely, I had to insert "FLOAT" in the following expression.
Cell_1_Voltage_Float = (FLOAT (Cell_1_Voltage_Int) / 1023) * 5.0
by Billduck1302
Fri Sep 26, 2025 10:58 pm
Forum: General
Topic: Error when compiling to target
Replies: 6
Views: 4141

Re: Error when compiling to target

Thank you so much. I am just learning about Injectors, when using the F8 key. Can it be done that, when prompted to read an analog input, that I could type in the bite when I have the command "Get Average Int". By the way, this is a program to test the capacity of Nissan Leaf cells.(2S2P) ...
by Billduck1302
Fri Sep 26, 2025 5:16 pm
Forum: General
Topic: Error when compiling to target
Replies: 6
Views: 4141

Error when compiling to target

This is the message. Is there a way to troubleshoot based on the last message "error code 0x1", or " invalid operands to binary | (have 'MX_FLOAT {aka volatile float}' and 'float')"? The correct programmer port is selected. Thanks in advance. "C:\Users\Klsa\OneDrive\Desktop\...
by Billduck1302
Sat Sep 13, 2025 10:48 pm
Forum: Feature Requests
Topic: Digital outputs automated in a MEGA
Replies: 6
Views: 3114

Re: Digital outputs automated in a MEGA

This is a sorting algorithm. It works for 8 elements in the array, but not 8+.
I need 14 elements.
by Billduck1302
Thu Sep 11, 2025 8:28 pm
Forum: Feature Requests
Topic: Digital outputs automated in a MEGA
Replies: 6
Views: 3114

Re: Digital outputs automated in a MEGA

I can not say that I follow your suggestions. It is a little advanced for me.
But I will attach what I have come up with. One program samples 7 cells.
And places the float voltages into an array. I have not tested it yet. The second
program - sorting - sorts the values in the array.