Keyboard Shortcuts
Likes
- SoftwareControlledHamRadio
- Messages
Search
Re: Upgrading Displays to I2C
Hank,
Thanks for the input. I will try your suggestion and let you know. So far I've tried two LiquidCrystal_I2C libraries that don't work.? The original sketch lcd code line with 'POSITIVE' didn't compile. And the second sketch with code line with lcd(0x27, 16, 2); compiles but doesn't run LCD.? I will REMOVE all LCD libraries in Arduino library files,? unzip NewliquidCrystal_1.3.4.zip (large file) and add it as sole LCD library and then let the VFOsource sketch decide... Don |
||||||||||||||||||||
Another 49er DDS VFO is alive
Thanks to the authors, my 49er with DDS vfo is now Alive. ?Working perfectly!! ?I don't have it in a case yet, I need to work on that, but all the smoke stayed in the tiny components :) The receive seems very strong. ?I think I might add a volume control and maybe RIT, not sure if anyone has done an RIT mod yet. |
||||||||||||||||||||
Re: Chinese rotary encoder PCB
I've been continuously licensed for 63 years and, no, I wasn't 1 when I got my Novice ticket! Jack, W8TEE From: "'G4IPZ.COM' g4ipz@... [SoftwareControlledHamRadio]" To: SoftwareControlledHamRadio@... Sent: Monday, May 30, 2016 6:26 PM Subject: Re: [SoftwareControlledHamRadio] Chinese rotary encoder PCB
?
?
Well Jack I'm 64 and, for my family history of popping their
clogs, that makes me seriously old!
?
Slim G4IPZ
?
?
|
||||||||||||||||||||
Re: Upgrading Displays to I2C
When fooling with those I2C modules did you notice they seem to be for the 1602 LCD displays? ?With just a bit of tweaking on the code you can change from 1602 to a 20x4 display Has anyone worked with changing from 16x2 to a 20X4 display using the modules? Ken H> ---In SoftwareControlledHamRadio@..., <HankEllis@...> wrote : In my junk box I have a supply of 2x16 LCD displays. These all have the analog interface where it takes several wires from the microprocessor to the display to make it work. This project introduced me to the I2C bus which only uses?two data wires plus the power and ground. Nice. Now, is it possible to upgrade the older displays to the I2C bus? Yes and it's easy. On eBay search for 'I2C'. Then sort by 'Price + Shipping: Lowest First'. What should show up near the top is something like this.
Picked up four to try it out. All were Version 1 as described at the Arduino Wikispaces page. ?Soldered them in and gave the hardware a trial run. First I ran the address scanner sketch and each reported 0x27. Then added in the LiquidCrystal_I2C library from the vfo-source-rev6 code for this project. Copied the demo sketch from the wikispaces page, compiled, and ... fail. The line that sets the LCD address has a call of POSITIVE that the compiler didn't like. Quick internet search revealed that it was a library issue. Downloaded and installed the library from the link at the wikispaces page. Recompiled and all is well. Ran the sketch and each display is responding as it should. Do be aware that you will have to tinker with the LCD contrast through the pot on the I2C module. If you do not have any characters displaying it may be just a contrast issue. Had to adjust all four of mine. One more oh by the way. The address scanner sketch has you set the Serial Monitor speed to 115200. While the demo sketch has the speed at 9600. Had me scratching my head for a minute why it wasn't working. After the forehead slap I set the speed at the Serial Monitor dropdown box to what the code asked for. Duh. As we say at my workplace, "Never overlook the obvious." So for less than $1 shipped you can upgrade those displays. Till later Hank K5HDE
|
||||||||||||||||||||
Re: Chinese rotary encoder PCB
?
toggle quoted message
Show quoted text
Well Jack I'm 64 and, for my family history of popping their
clogs, that makes me seriously old!
?
Slim G4IPZ
?
?
|
||||||||||||||||||||
Re: Upgrading Displays to I2C
Don; Did you change the change the address in line 100 from 0X27 to 0x3F? Give this a try. Delete the entire LiquidCrystal_I2C directory from the library section. Then expand everything in the NewliquidCrystal_1.3.4.zip file. Copy all of it back into the library section. Then let the compiler pick and choose what it wants. Till later Hank K5HDE ---------------------------------------- Hank / K5HDE, Jack / W8TEE, I just finished assembly of Forty-9er/Nano/DDS/16x2 LCD/Encoder. Finally got the VfoSource sketch to compile but LCD only back lights and has the top row of matrix squares lighted (No alpha-numeric). I'm using a 16x2 LCD display (Chinese 1602A Ver2.0) with a piggyback I2C serial converter board (Type 1, A0, A1, A2) I soldered to LCD. I ran the suggested address scanner and got: Found Address 63 (0x3F).? I notice that the VfoSource sketch,? line 100, addresses: lcd (0x27, 16, 2); Hank, I'm guessing that this is similar to your initial LCD problem. I downloaded the NewliquidCrystal_1.3.4.zip files but there seems to be a load of different .cpp and .h library files to choose from for various LCDs. I'm? stuck... Don / N5DM Houston, Texas |
||||||||||||||||||||
Re: CW keyer?
I just shared a link to the sketch for the Canned Frog.
toggle quoted message
Show quoted text
DuWayne On 5/29/2016 6:07 PM, sailingtoo@... [SoftwareControlledHamRadio] wrote:
|
||||||||||||||||||||
Re: CW keyer?
When I did the Canned Frog last year I added a simple keyer to the software. For speed control, I used the rotary encoder with the push button pressed to change speed.
toggle quoted message
Show quoted text
DuWayne KV4qb.blogspot.com On 5/29/2016 2:57 PM, sailingtoo@... [SoftwareControlledHamRadio] wrote:
|
||||||||||||||||||||
Re: CW keyer?
Gary,?W0MNA, added a keyer to his rig. (See his earlier post.) There are a bazillion different types of electronic keyers, so pick one you like and add it to the code. The Arduino Projects for Amateur Radio book has a capacitive touch keyer, which means you don't need fancy paddles. I used two solder lugs! Attached is a picture from Chapter 7 of one Dennis built using a Digispark board (code will run on a Nano). It's a stand-alone keyer, but as you can see, no paddles are required and it's pretty small. Since you have code space, all you need to add are the solder lugs! Jack, W8TEE From: "sailingtoo@... [SoftwareControlledHamRadio]" To: SoftwareControlledHamRadio@... Sent: Sunday, May 29, 2016 2:57 PM Subject: [SoftwareControlledHamRadio] CW keyer?
?
Hello all - I'm new here, have read thru LOTS of the threads and found LOTS of good info. ?I have ordered the parts, 49-er, etc and PCB and parts kit and waiting for delivery. ? This sure seems like a NICE project to build. my question, has anyone considered adding a CW keyer to the Arduino code? ?Perhaps having the CW speed to be displayed on LCD? ?Perhaps this ?has been done and I didn't find the info -? While I've done some Arduino programming and can tweak programs, I'm NOT a true programmer. ? Thanks to all for having such a GREAT group, and especially to Dr Jack, Farrukh, and Dennis to bringing such a nice project to the world. 73 de Ken H> K9FV
|
||||||||||||||||||||
CW keyer?
Hello all - I'm new here, have read thru LOTS of the threads and found LOTS of good info. ?I have ordered the parts, 49-er, etc and PCB and parts kit and waiting for delivery. ? This sure seems like a NICE project to build. my question, has anyone considered adding a CW keyer to the Arduino code? ?Perhaps having the CW speed to be displayed on LCD? ?Perhaps this ?has been done and I didn't find the info -? While I've done some Arduino programming and can tweak programs, I'm NOT a true programmer. ? Thanks to all for having such a GREAT group, and especially to Dr Jack, Farrukh, and Dennis to bringing such a nice project to the world. 73 de Ken H> K9FV |
||||||||||||||||||||
Re: Chinese rotary encoder PCB
Chances are I'm wearing shoes older than you are! Jack, W8TEE From: "g4ipz@... [SoftwareControlledHamRadio]" To: SoftwareControlledHamRadio@... Sent: Sunday, May 29, 2016 12:41 PM Subject: Re: [SoftwareControlledHamRadio] Chinese rotary encoder PCB
?
Hi Jack.
Thanks for pointing that mod out. I have had to do it before, mostly when I was playing with PIC programming. I really should do it as a matter of course with rotary encoders generally - I must be getting old. Oh yes - I forgot - I am old HI! 73 Slim G4IPZ |
||||||||||||||||||||
Re: Chinese rotary encoder PCB
Hi Slim: The KY-040 encoder is what I used in the Forty-9er, too. I also added two 0.1uF caps from the CLK and DT lines to ground to debounce the encoder. This can be seen in the attached photo.? Jack, W8TEE From: "g4ipz@... [SoftwareControlledHamRadio]" To: SoftwareControlledHamRadio@... Sent: Sunday, May 29, 2016 11:14 AM Subject: [SoftwareControlledHamRadio] Chinese rotary encoder PCB
?
I thought this might be of interest to the group. I have been using different rotary encoders over the years for diferent projects and perhaps the following info may be of help. I have included a photo of the type I am referring to as "rotary encoder.jpg" in the files section. It is marked with the name 'KEYES' but can be found 'unbranded' on several Chinese sites. To the UK they come in at less than ?4 for 10 of them. The encoder on this pcb requires a 5V supply and will not work simply with reference to the digital input levels on the Arduino pins. The connections needed for it to work are as follows, referring to the print on the encoder pcb and the print on the multiway connector on the project motherboard. CLK --> pin marked 2 on board (yellow section of pins) DT ----> pin marked 3 on board (yellow section of pins) SW ---> pin marked 7 on board (yellow section of pins) ?+? -----)> 5V (any one will do) GND -----> G (any one will do) all the best 73 Slim G4IPZ |
||||||||||||||||||||
Chinese rotary encoder PCB
I thought this might be of interest to the group.
I have been using different rotary encoders over the years for diferent projects and perhaps the following info may be of help. I have included a photo of the type I am referring to as "rotary encoder.jpg" in the files section. It is marked with the name 'KEYES' but can be found 'unbranded' on several Chinese sites. To the UK they come in at less than ?4 for 10 of them. The encoder on this pcb requires a 5V supply and will not work simply with reference to the digital input levels on the Arduino pins. The connections needed for it to work are as follows, referring to the print on the encoder pcb and the print on the multiway connector on the project motherboard. CLK --> pin marked 2 on board (yellow section of pins) DT ----> pin marked 3 on board (yellow section of pins) SW ---> pin marked 7 on board (yellow section of pins) ?+? -----)> 5V (any one will do) GND -----> G (any one will do) all the best 73 Slim G4IPZ |
||||||||||||||||||||
New file uploaded to SoftwareControlledHamRadio
Hello,
This email message is a notification to let you know that a file has been uploaded to the Files area of the SoftwareControlledHamRadio group. File : /rotary encoder.jpg Uploaded by : koyaanisqatsiuk <g4ipz@...> Description : Chinese rotary encoder PCB You can access this file at the URL: To learn more about file sharing for your group, please visit: Regards, koyaanisqatsiuk <g4ipz@...> |
||||||||||||||||||||
I2C Displays
I may have missed someone already giving this advice, if I have I apologise.
Not all the I2C displays out there are pin for pin compatible. Also the I2C address is very important. 50% of the display driver boards and LCDs I have come across use the 0x27 base address as in the original arduino sketch for this project. However the other common I2C LCD display boards I have use address 0x20. Unfortunately simply changing the I2C address to 0x20 instead of 0x27 doesn't make them work. This is because the pins utilised on the PCF9574 I2C control chip to drive the display are different for different driver board manufacturers. I currently am using the 0x27 boards that have a link on one end of the board to disable the backlight and they work perfectly in the sketch If you are using boards from Alioexpress (or other Chinese suppliers) that have 'IICLCD' printed on the board they are 0x20 base address boards and the sketch will need a bit of work in the "LiquidCrystal_I2C lcd () " statement to make them function. This is the line I use for my I2C 0X20 boards from Aliexpress LiquidCrystal_I2C lcd (0x20, 4, 5, 6, 0, 1, 2, 3, 7, NEGATIVE); You may need to change NEGATIVE to POSITIVE depending on how you find the display backlight functions. I hope that may help someone 73 Slim Haines G4IPZ |
||||||||||||||||||||
Re: Upgrading Displays to I2C
Don: There are a bunch of files in the NewLiquidCrystal library. However, the proper library directory name should be LiquidCrystal_I2C. For my system, I have the 1.6.9 IDE installed on drive E, so I set it up like: ? ?E:/Arduino1.6.9/libraries/LiquidCrystal_I2C If you erased the old I2C library and it compiled, it may be just an adjustment of the blue pot on the display. Jack, W8TEE From: "donmay2@... [SoftwareControlledHamRadio]" To: SoftwareControlledHamRadio@... Sent: Saturday, May 28, 2016 8:14 PM Subject: [SoftwareControlledHamRadio] Re: Upgrading Displays to I2C
?
Hank / K5HDE,
Jack / W8TEE, I just finished assembly of Forty-9er/Nano/DDS/16x2 LCD/Encoder. Finally got the VfoSource sketch to compile but LCD only back lights and has the top row of matrix squares lighted (No alpha-numeric). I'm using a 16x2 LCD display (Chinese 1602A Ver2.0) with a piggyback I2C serial converter board (Type 1, A0, A1, A2) I soldered to LCD. I ran the suggested address scanner and got: Found Address 63 (0x3F).? I notice that the VfoSource sketch,? line 100, addresses: lcd (0x27, 16, 2); Hank, I'm guessing that this is similar to your initial LCD problem. I downloaded the NewliquidCrystal_1.3.4.zip files but there seems to be a load of different .cpp and .h library files to choose from for various LCDs. I'm? stuck... Don / N5DM Houston, Texas |