P25RX Arduino/Teensy Display project

Status
Not open for further replies.

btt

Jew lover
Banned
Joined
Mar 11, 2020
Messages
2,585
Location
Wa State
Big thanks to @goldmyne99 for finding the WIO Terminal! With @goldmyne99's help, I was able to get something done right away with this device. It is very easy to get it up and running with the arduino environment. @goldmyne99 and I have been conversing about what kinds of things need to be in the upcoming binary interface specification. (not completed yet). In the meantime, there is a demo application for the P25RX / P25RX-II available that utilizes a slightly extended version of the binary transfer that was already in place for the BTT P25RX display. You can find more information about the demo application here: https://bluetailtechnologies.com/pages/p25rx-wio-terminal-p25-demo-application To install the application on the WIO, copy the 'CURRENT.UF2' firmware file to the WIO device when it is in a USB mass storage device mode (bootloader mode). You can enter the bootloader mode by double-pressing the reset button quickly.

I ordered one of the battery units mentioned a few posts back. The capacity of the battery will not last long (probably less than an hour). Keep that in mind before buying one. Even with limited capacity, it may still be a nice solution for supplying power to both the WIO and P25RX while they are connected via a standard cable. I will post an update on the battery pack / USB-C to USB-C cable combo when it arrives.
 

FreqNout

Member
Joined
Jul 23, 2021
Messages
297
Location
Chicagoland
You can find more information about the demo application here: https://bluetailtechnologies.com/pages/p25rx-wio-terminal-p25-demo-application To install the application on the WIO, copy the 'CURRENT.UF2' firmware file to the WIO device when it is in a USB mass storage device mode (bootloader mode).
Love the video demo!

I updated my Wio in about 5 seconds - drag and drop the file. Super easy and super cool. This is now replacing my tablet in my truck. This is a great Display and control upgrade for my p25rx rig. Fantastic work!!
 

freqseeker

Member
Joined
Jun 18, 2003
Messages
470
Location
Puget Sound WA.
Ok I'm in on this project. I ordered the Wio, now I'm thinking of a way to power it. I have read the entire thread but may have misunderstood the power options. I assume the Wio will power the P25RX.
Looking to power the Wio I see the following GPIO diagram. I see pins 2 and 4 are 5V, is that input or output? Can I supply 5V to pin 4 and ground to pin 6 and power both units? If not what are my options?
I'm thinking these may be outputs on the male side like a raspberry pi and inputs on the Wio. I'm probably overthinking something simple.
Thank you all for making this project work.
WioT-Pinout.jpg
 
  • Like
Reactions: btt

goldmyne99

Member
Joined
Jul 23, 2018
Messages
274
Can I supply 5V to pin 4 and ground to pin 6 and power both units? If not what are my options?
Yes. It is that easy. The P25RX is powered by the 5V input on the GPIO.

This is a picture of my USB 5V power into the GPIO pins.

EDIT: These GPIO pins can be configured as inputs or outputs as needed.
EDIT2: The P25RX is connected and powered thru the USB C port - at the bottom of the picture. A USB C to USB C cable connects the P25RX to the WIO. My USB 5V cable goes to your source of 5 Volts for powering both units. Please let me know if this helps answer your questions?

wio_power.jpg
 
Last edited:

freqseeker

Member
Joined
Jun 18, 2003
Messages
470
Location
Puget Sound WA.
Yes. It is that easy. The P25RX is powered by the 5V input on the GPIO.
Thank you.
Your first edit says the GPIO pins are cofigurable. Did you have to make them a input in your coding or are they on a common bus for respective 5V, 3.3V, and GND? I know this is basic, I'm just making sure I understand. I would like to get into basic coding for projects like this.

Looking at the battery listed a few posts back would suggest they are on a common bus unless the battery has a code to configure the pins.

So let's say we didn't plug the Wio into the P25RX, instead we plugged the USB C into a computer. Would there be 5 volts on pins 2 and 4? With or without configuration? Thus a common bus? Does that make sense?
 

goldmyne99

Member
Joined
Jul 23, 2018
Messages
274
Did you have to make them a input in your coding or are they on a common bus for respective 5V, 3.3V, and GND?

Fair warning...a lot of words...
That is a good question. They are common - but can be software switched based upon the voltage source. Meaning, is the input 5 Volt source the USB C port or the GPIO pins.

In reviewing the schematic, both the 5v and 3.3v lines can be switched as input or output by software pin configs. Those pin configs (high or low) control FET switching circuits.

As an example, we need to send the 5 Volts connected to GPIO pin 2 (or pin 4) OUT to the P25RX. That requires two code lines.
digitalWrite(PIN_USB_HOST_ENABLE, LOW);
digitalWrite(OUTPUT_CTR_5V, HIGH);
The Pin USB Host Enable is set "Low". That "Low" controls the 5 Volt FET switching circuit to send power OUT the usb c port. The Output Ctr 5V is set "High". That "High" sends the 5 Volts connected to GPIO pin2 (or pin 4) OUT the usb c port.

I have not seen the optional battery case schematic. It attaches to the main Wio 40 pin GPIO connector. The software should still need to be configured as above. The Wio still needs to send 5 volts out the usb c port from the GPIO pins. The battery case has a usb c port for charging the small battery and powering the Wio. That battery circuit would be the 5 volt source to pin 2 (or pin 4).

So let's say we didn't plug the Wio into the P25RX, instead we plugged the USB C into a computer. Would there be 5 volts on pins 2 and 4?

Powering the Wio USB C by computer should provide the 5 volts to the pins by default. The 5 volts input on the USB C will still go through the FET switching circuits. It would be a good practice to write code to ensure the switching circuits are correctly configured.

A lot of words...that is just my understanding of how it works. I hope it helps.
 

freqseeker

Member
Joined
Jun 18, 2003
Messages
470
Location
Puget Sound WA.
That does answer my questions. I have a lot to learn, that is a good start. I learn from reverse engineering to diagnose. What should I see vs. what I'm seeing. If it didn't work I would assume it needs to be switched by software, but now I know it does.
Thanks again. My Wio should be here this week.
 

goldmyne99

Member
Joined
Jul 23, 2018
Messages
274
Thanks again. My Wio should be here this week.

You are very welcome. I am happy to help.
I really like the Wio. Todd's demo program runs great. You will be up and running in minutes.

Once he gets the new API written, it opens the door to the sharing of ideas for display screens, etc. Adding a display and control could not be easier than this "off the shelf" Wio device. It is close to a "plug and play" P25RX add on.
 

goldmyne99

Member
Joined
Jul 23, 2018
Messages
274
My Wio should be here this week.
To help you get your Wio P25RX display running, I will look over my notes and post a "Quick Start Guide". I may have a first draft done by Tomorrow.

While waiting for your Wio, determining how you wish to provide 5 Volts to the GPIO pins would be step one. My posts #39 and #47 in this thread are simple examples.

There is no need for you to write any code to get the display running with Todd's demo program installed on the Wio.
 
Last edited:

freqseeker

Member
Joined
Jun 18, 2003
Messages
470
Location
Puget Sound WA.
A "Quick Start Guide" for the Wio Terminal P25RX/P25RX-II Display has been added to the @btt web page.

https://bluetailtechnologies.com/pages/p25rx-wio-terminal-p25-demo-application
Nice guide. Thank you for taking the time to do that.
I have everything I need to get started except the Wio (should be here tomorrow).
Looking at the power options I did some research on the battery. It looks like that is the best option as it is much cleaner, no matter how you try to secure the power pins there is a possibility of bumping them loose or....
The battery can power and charge at the same time. Battery backup during power outage.

Another option is to 3D print some sort of holder for the Wio and P25RX. I have a 3D printer but am terrible with CAD software. I designed some spacers (think simple plastic washers) and couldn't get the center hole round, it was slightly egg shaped, but it worked. People who are good at 3D design are artists just like good coders.
A 3D mount could be made to accomodate the battery as well.

That's just my opinion on the battery, I don't think the low capacity is a issue though it could be a deal breaker for others.
They are on back order from Seeed but I found Digi-Key shows 31 in stock tonight. Wio battery

Todd sent me the sketch, I will look at it and get a good idea how it works.
 

goldmyne99

Member
Joined
Jul 23, 2018
Messages
274
Nice guide. Thank you for taking the time to do that.
If you need help, just let me know.
Looking at the power options I did some research on the battery. It looks like that is the best option as it is much cleaner, no matter how you try to secure the power pins there is a possibility of bumping them loose or....
It is nice to have options. Make it your own design and have fun.

For me, the 18 AWG solid copper wire is secure in the GPIO header. It will not fall out. Hot glue also helps secure the cable.

The 40 pin Wio GPIO header is Raspberry Pi compatible pin for pin. Perhaps there is a RPi connector that could be used to power the Wio. I do not have a RPi. The RPi could also control the P25RX through the Wio GPIO - Arduino code would need to be written as an interface.

A lot of options for expanding the Wio project. I am thinking of adding a keypad. I hope others that get a Wio share ideas as well.
 
Last edited:

FreqNout

Member
Joined
Jul 23, 2021
Messages
297
Location
Chicagoland

There are plenty of options for getting 5 volts into the Wio. Above link breakout board is what I found and it works great with a jst connector. Ymmv.
 
Status
Not open for further replies.
Top