Open RichNeese opened 2 weeks ago
Please add the kicad files so we can work on a board. would like to help make a 2m 6m version of this.
The bitx2m was made ugly way, the pcb was never laid out. I will upload the schematic soon.
On Thu, Jun 27, 2024, 4:39 PM Richard Neese @.***> wrote:
Please add the kicad files so we can work on a board. would like to help make a 2m 6m version of this.
— Reply to this email directly, view it on GitHub https://github.com/afarhan/bitx2m/issues/1#issuecomment-2194909185, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFYXOHG5RRTLG3KNTHIBN3ZJQP3PAVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUHEYDSMJYGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Ok well I have started on working code and a basic 2m 6m Arduino but I am looking to move to the pi pico as it will allow for more options in the future including a better lcd screen
On Jun 27, 2024, at 10:48 AM, Ashhar Farhan @.***> wrote:
The bitx2m was made ugly way, the pcb was never laid out. I will upload the schematic soon.
On Thu, Jun 27, 2024, 4:39 PM Richard Neese @.***> wrote:
Please add the kicad files so we can work on a board. would like to help make a 2m 6m version of this.
— Reply to this email directly, view it on GitHub https://github.com/afarhan/bitx2m/issues/1#issuecomment-2194909185, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFYXOHG5RRTLG3KNTHIBN3ZJQP3PAVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUHEYDSMJYGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/afarhan/bitx2m/issues/1#issuecomment-2194929615, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEITPY37OBP7LVQKM6FS5DZJQQ5HAVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUHEZDSNRRGU. You are receiving this because you authored the thread.
I have started new code and building a new pico based Arduino si570 based … once I have the pico and lcd in hand I will post some basic. Pics
On Jun 27, 2024, at 10:48 AM, Ashhar Farhan @.***> wrote:
The bitx2m was made ugly way, the pcb was never laid out. I will upload the schematic soon.
On Thu, Jun 27, 2024, 4:39 PM Richard Neese @.***> wrote:
Please add the kicad files so we can work on a board. would like to help make a 2m 6m version of this.
— Reply to this email directly, view it on GitHub https://github.com/afarhan/bitx2m/issues/1#issuecomment-2194909185, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFYXOHG5RRTLG3KNTHIBN3ZJQP3PAVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUHEYDSMJYGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/afarhan/bitx2m/issues/1#issuecomment-2194929615, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEITPY37OBP7LVQKM6FS5DZJQQ5HAVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUHEZDSNRRGU. You are receiving this because you authored the thread.
Awesome, thanks for the update.
On Thu, Jun 27, 2024, 10:05 PM Richard Neese @.***> wrote:
I have started new code and building a new pico based Arduino si570 based … once I have the pico and lcd in hand I will post some basic. Pics
On Jun 27, 2024, at 10:48 AM, Ashhar Farhan @.***> wrote:
The bitx2m was made ugly way, the pcb was never laid out. I will upload the schematic soon.
On Thu, Jun 27, 2024, 4:39 PM Richard Neese @.***> wrote:
Please add the kicad files so we can work on a board. would like to help make a 2m 6m version of this.
— Reply to this email directly, view it on GitHub https://github.com/afarhan/bitx2m/issues/1#issuecomment-2194909185, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAFYXOHG5RRTLG3KNTHIBN3ZJQP3PAVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUHEYDSMJYGU>
. You are receiving this because you are subscribed to this thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub < https://github.com/afarhan/bitx2m/issues/1#issuecomment-2194929615>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACEITPY37OBP7LVQKM6FS5DZJQQ5HAVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUHEZDSNRRGU>.
You are receiving this because you authored the thread.
— Reply to this email directly, view it on GitHub https://github.com/afarhan/bitx2m/issues/1#issuecomment-2195580120, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFYXOCCHGJNB4ZKHPYK24TZJRV73AVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJVGU4DAMJSGA . You are receiving this because you commented.Message ID: @.***>
These are the main screens I am looking to use. And I am working on the code but I am waiting on the 2 screens to get here
On Jun 28, 2024, at 2:28 AM, Ashhar Farhan @.***> wrote:
Awesome, thanks for the update.
On Thu, Jun 27, 2024, 10:05 PM Richard Neese @.***> wrote:
I have started new code and building a new pico based Arduino si570 based … once I have the pico and lcd in hand I will post some basic. Pics
On Jun 27, 2024, at 10:48 AM, Ashhar Farhan @.***> wrote:
The bitx2m was made ugly way, the pcb was never laid out. I will upload the schematic soon.
On Thu, Jun 27, 2024, 4:39 PM Richard Neese @.***> wrote:
Please add the kicad files so we can work on a board. would like to help make a 2m 6m version of this.
— Reply to this email directly, view it on GitHub https://github.com/afarhan/bitx2m/issues/1#issuecomment-2194909185, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAFYXOHG5RRTLG3KNTHIBN3ZJQP3PAVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUHEYDSMJYGU>
. You are receiving this because you are subscribed to this thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub < https://github.com/afarhan/bitx2m/issues/1#issuecomment-2194929615>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACEITPY37OBP7LVQKM6FS5DZJQQ5HAVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUHEZDSNRRGU>.
You are receiving this because you authored the thread.
— Reply to this email directly, view it on GitHub https://github.com/afarhan/bitx2m/issues/1#issuecomment-2195580120, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFYXOCCHGJNB4ZKHPYK24TZJRV73AVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJVGU4DAMJSGA . You are receiving this because you commented.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/afarhan/bitx2m/issues/1#issuecomment-2196231199, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEITPYC3YECND64QSDNPALZJT7AXAVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJWGIZTCMJZHE. You are receiving this because you authored the thread.
My question is python or c as I am doing this currently in python as I am not a c++ person and when done we should have good code. I can run it through a python to c++ converter if needed
On Jun 28, 2024, at 2:28 AM, Ashhar Farhan @.***> wrote:
Awesome, thanks for the update.
On Thu, Jun 27, 2024, 10:05 PM Richard Neese @.***> wrote:
I have started new code and building a new pico based Arduino si570 based … once I have the pico and lcd in hand I will post some basic. Pics
On Jun 27, 2024, at 10:48 AM, Ashhar Farhan @.***> wrote:
The bitx2m was made ugly way, the pcb was never laid out. I will upload the schematic soon.
On Thu, Jun 27, 2024, 4:39 PM Richard Neese @.***> wrote:
Please add the kicad files so we can work on a board. would like to help make a 2m 6m version of this.
— Reply to this email directly, view it on GitHub https://github.com/afarhan/bitx2m/issues/1#issuecomment-2194909185, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAFYXOHG5RRTLG3KNTHIBN3ZJQP3PAVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUHEYDSMJYGU>
. You are receiving this because you are subscribed to this thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub < https://github.com/afarhan/bitx2m/issues/1#issuecomment-2194929615>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACEITPY37OBP7LVQKM6FS5DZJQQ5HAVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUHEZDSNRRGU>.
You are receiving this because you authored the thread.
— Reply to this email directly, view it on GitHub https://github.com/afarhan/bitx2m/issues/1#issuecomment-2195580120, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFYXOCCHGJNB4ZKHPYK24TZJRV73AVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJVGU4DAMJSGA . You are receiving this because you commented.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/afarhan/bitx2m/issues/1#issuecomment-2196231199, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEITPYC3YECND64QSDNPALZJT7AXAVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJWGIZTCMJZHE. You are receiving this because you authored the thread.
Dont know if you have used the pico much but I have base code but need help finishing it out
Here is a C++ code snippet for the described VFO (Variable Frequency Oscillator) functionality using the Raspberry Pi Pico and the mentioned components. This code assumes the use of the Arduino framework for the Raspberry Pi Pico.
Prerequisites:
Install the necessary libraries for the OLED display, SI5351, and encoder. Wire the components according to the pins defined in the code. Libraries Required:
Adafruit_GFX Adafruit_SSD1306 SI5351 Encoder Sample Code:
cpp Copy code
// Pin Definitions
// Constants
// Global Variables Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); Si5351 si5351; Encoder encoder(ENCODER_PIN_A, ENCODER_PIN_B); uint32_t currentFreqA = DEFAULT_FREQ_A; uint32_t currentFreqB = DEFAULT_FREQ_B; uint32_t memory[NUM_MEMORIES]; bool isHF = true; bool isUSB = true; int smeterLevel = 0;
// Function Prototypes void setup(); void loop(); void updateDisplay(); void handleEncoder(); void handleButtons(); void handlePTT(); void switchMode(); void saveMemory(uint8_t index, uint32_t freq); uint32_t recallMemory(uint8_t index);
void setup() { pinMode(PTT_PIN, INPUT); pinMode(PTT_LED_PIN, OUTPUT); pinMode(ANTENNA_RELAY_PIN, OUTPUT); pinMode(BUTTON_MODE_USB_LSB, INPUT_PULLUP); pinMode(BUTTON_MEM_SAVE, INPUT_PULLUP); pinMode(BUTTON_MEM_RECALL, INPUT_PULLUP); pinMode(BUTTON_STEP_FUNCTION, INPUT_PULLUP);
for (int i = BUTTON_FUNC1; i <= BUTTON_FUNC5; i++) { pinMode(i, INPUT_PULLUP); }
Serial.begin(115200);
if (!display.begin(SSD1306_I2C_ADDRESS, OLED_RESET)) { Serial.println(F("SSD1306 allocation failed")); for (;;); }
si5351.init(SI5351_CRYSTAL_LOAD_8PF, 25000000, 0); si5351.set_freq(DEFAULT_FREQ_A * 100ULL, SI5351_CLK0);
display.clearDisplay(); display.display(); }
void loop() { handleEncoder(); handleButtons(); handlePTT(); updateDisplay(); }
void updateDisplay() { display.clearDisplay();
// Frequency Display display.setTextSize(1); display.setCursor(0, 0); display.print("Freq: "); display.print(isHF ? currentFreqA : currentFreqB);
// Mode Display display.setCursor(0, 10); display.print("Mode: "); display.print(isUSB ? "USB" : "LSB");
// S-Meter Display display.setCursor(0, 20); display.print("S: "); display.print(smeterLevel);
display.display(); }
void handleEncoder() { static uint32_t lastPos = -1; uint32_t newPos = encoder.read();
if (newPos != lastPos) { lastPos = newPos; int32_t step = (digitalRead(BUTTON_STEP_FUNCTION) == LOW) ? 1000 : 100000; // Example step sizes if (newPos > lastPos) { if (isHF) currentFreqA += step; else currentFreqB += step; } else { if (isHF) currentFreqA -= step; else currentFreqB -= step; } si5351.set_freq((isHF ? currentFreqA : currentFreqB) * 100ULL, SI5351_CLK0); } }
void handleButtons() { if (digitalRead(BUTTON_MODE_USB_LSB) == LOW) { switchMode(); delay(200); // Debounce }
if (digitalRead(BUTTON_MEM_SAVE) == LOW) { saveMemory(0, isHF ? currentFreqA : currentFreqB); delay(200); // Debounce }
if (digitalRead(BUTTON_MEM_RECALL) == LOW) { if (isHF) currentFreqA = recallMemory(0); else currentFreqB = recallMemory(0); si5351.set_freq((isHF ? currentFreqA : currentFreqB) * 100ULL, SI5351_CLK0); delay(200); // Debounce }
// Add handlers for other buttons as needed }
void handlePTT() { bool pttState = digitalRead(PTT_PIN); digitalWrite(PTT_LED_PIN, pttState); digitalWrite(ANTENNA_RELAY_PIN, pttState); }
void switchMode() { isUSB = !isUSB; }
void saveMemory(uint8_t index, uint32_t freq) { if (index < NUM_MEMORIES) { memory[index] = freq; } }
uint32_t recallMemory(uint8_t index) { if (index < NUM_MEMORIES) { return memory[index]; } return 0; // Default return value if invalid index } Notes:
The code includes basic functionality for switching frequencies, modes, handling PTT, and displaying information on the OLED screen. The encoder, buttons, and other components should be wired according to the pin definitions in the code. Adjust the step sizes and add further functionality as needed to meet the specific requirements of your project. Add debounce handling and more robust state management for production use. Feel free to expand this code to incorporate additional features and improve functionality based on your project needs.
On Jun 28, 2024, at 2:28 AM, Ashhar Farhan @.***> wrote:
Awesome, thanks for the update.
On Thu, Jun 27, 2024, 10:05 PM Richard Neese @.***> wrote:
I have started new code and building a new pico based Arduino si570 based … once I have the pico and lcd in hand I will post some basic. Pics
On Jun 27, 2024, at 10:48 AM, Ashhar Farhan @.***> wrote:
The bitx2m was made ugly way, the pcb was never laid out. I will upload the schematic soon.
On Thu, Jun 27, 2024, 4:39 PM Richard Neese @.***> wrote:
Please add the kicad files so we can work on a board. would like to help make a 2m 6m version of this.
— Reply to this email directly, view it on GitHub https://github.com/afarhan/bitx2m/issues/1#issuecomment-2194909185, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAFYXOHG5RRTLG3KNTHIBN3ZJQP3PAVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUHEYDSMJYGU>
. You are receiving this because you are subscribed to this thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub < https://github.com/afarhan/bitx2m/issues/1#issuecomment-2194929615>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACEITPY37OBP7LVQKM6FS5DZJQQ5HAVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUHEZDSNRRGU>.
You are receiving this because you authored the thread.
— Reply to this email directly, view it on GitHub https://github.com/afarhan/bitx2m/issues/1#issuecomment-2195580120, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFYXOCCHGJNB4ZKHPYK24TZJRV73AVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJVGU4DAMJSGA . You are receiving this because you commented.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/afarhan/bitx2m/issues/1#issuecomment-2196231199, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEITPYC3YECND64QSDNPALZJT7AXAVCNFSM6AAAAABJ2PPP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJWGIZTCMJZHE. You are receiving this because you authored the thread.
please update these files for the current kicad as it requires the files in .pro format now