• Re: Tiny 2040 - size of a postage stamp

    From A. Dumas@3:770/3 to Martin Gregorie on Fri Feb 26 05:17:11 2021
    Martin Gregorie <martin@mydomain.invalid> wrote:
    I could do with something a bit physically smaller that the Pico, so the
    Tiny looks good, but it needs to be able to handle at least two RC servos
    so I need a couple of PWN outputs and two other lines for reading switch inputs. So, although at first glance this looks good, I can't see any indication that its still got PWM available on its remaining output
    lines. The USB connector is fine for talking to a control box so I could
    care less about RS232 capabilities.

    There are 16 pwm channels on the rp2040 chip which can be connected to any gpio. I'm sure that's still the same on the Tiny. So you have at least 8
    pwm pins, or 11 if you count the rgb led. Not sure if the 4 adc pins can be reconfigured to be digital pwm, but I don't think so.

    (The Tiny has one more adc pin than the Pico because it lacks the
    buck-boost and hence the need to monitor the input voltage. Like (many/all/most?) small mcus, by the way, there is just one adc and the 4
    pins are multiplexed.)

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Martin Gregorie@3:770/3 to A. Dumas on Fri Feb 26 14:32:14 2021
    On Fri, 26 Feb 2021 05:17:11 +0000, A. Dumas wrote:

    There are 16 pwm channels on the rp2040 chip which can be connected to
    any gpio. I'm sure that's still the same on the Tiny. So you have at
    least 8 pwm pins, or 11 if you count the rgb led. Not sure if the 4 adc
    pins can be reconfigured to be digital pwm, but I don't think so.

    Thanks for the correction - I just looked at the pretty picture and, not
    seeing PWM among all the other coloure blobs, thought it wasn't available.

    (The Tiny has one more adc pin than the Pico because it lacks the
    buck-boost and hence the need to monitor the input voltage. Like (many/all/most?) small mcus, by the way, there is just one adc and the 4
    pins are multiplexed.)

    Does this mean that, if I put 5v on pin 1 I'll see 3.3v on pin 3, but the reverse doesn't happen?

    Yeah, I know I should Read The Fine Manual but I've got a few other
    things (with deadlines attached) on my plate right now.


    --
    Martin | martin at
    Gregorie | gregorie dot org

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Folderol@3:770/3 to Martin Gregorie on Fri Feb 26 15:50:17 2021
    On Fri, 26 Feb 2021 14:32:14 -0000 (UTC)
    Martin Gregorie <martin@mydomain.invalid> wrote:

    On Fri, 26 Feb 2021 05:17:11 +0000, A. Dumas wrote:

    There are 16 pwm channels on the rp2040 chip which can be connected to
    any gpio. I'm sure that's still the same on the Tiny. So you have at
    least 8 pwm pins, or 11 if you count the rgb led. Not sure if the 4 adc
    pins can be reconfigured to be digital pwm, but I don't think so.

    Thanks for the correction - I just looked at the pretty picture and, not >seeing PWM among all the other coloure blobs, thought it wasn't available.

    (The Tiny has one more adc pin than the Pico because it lacks the
    buck-boost and hence the need to monitor the input voltage. Like
    (many/all/most?) small mcus, by the way, there is just one adc and the 4
    pins are multiplexed.)

    Does this mean that, if I put 5v on pin 1 I'll see 3.3v on pin 3, but the >reverse doesn't happen?

    That was the impression I got, doing a fairly rapid skim of the data.

    --
    W J G

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Andy Burns@3:770/3 to Martin Gregorie on Fri Feb 26 16:53:51 2021
    Martin Gregorie wrote:

    Does this mean that, if I put 5v on pin 1 I'll see 3.3v on pin 3, but the reverse doesn't happen?

    I presume so, as it'll have to drop the USB 5V to 3.3V anyway.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From alister@3:770/3 to Folderol on Sat Feb 27 12:06:17 2021
    On Fri, 26 Feb 2021 15:50:17 +0000, Folderol wrote:

    On Fri, 26 Feb 2021 14:32:14 -0000 (UTC)
    Martin Gregorie <martin@mydomain.invalid> wrote:

    On Fri, 26 Feb 2021 05:17:11 +0000, A. Dumas wrote:

    There are 16 pwm channels on the rp2040 chip which can be connected to
    any gpio. I'm sure that's still the same on the Tiny. So you have at
    least 8 pwm pins, or 11 if you count the rgb led. Not sure if the 4
    adc pins can be reconfigured to be digital pwm, but I don't think so.

    Thanks for the correction - I just looked at the pretty picture and, not >>seeing PWM among all the other coloure blobs, thought it wasn't
    available.

    (The Tiny has one more adc pin than the Pico because it lacks the
    buck-boost and hence the need to monitor the input voltage. Like
    (many/all/most?) small mcus, by the way, there is just one adc and the
    4 pins are multiplexed.)

    Does this mean that, if I put 5v on pin 1 I'll see 3.3v on pin 3, but
    the reverse doesn't happen?

    That was the impression I got, doing a fairly rapid skim of the data.

    Close enough
    Putting poweing the 3v pin will not get you a 5v output form either board.

    The pico has a pin - VSYS which is connected to a Buck/boost converter &
    will accept 2V to 5.5V & regulate it to the required V3.3 (this will be
    great for battery powered equipment)

    The Tiny does not have this pin (or type of regulator) so does not need
    to use one of the ADC pins to monitor & control it



    --
    Well, I think Perl should run faster than C. :-)
    -- Larry Wall in <199801200306.TAA11638@wall.org>

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Martin Gregorie@3:770/3 to All on Sat Feb 27 17:10:36 2021
    On Sat, 27 Feb 2021 12:06:17 +0000, alister wrote:


    For those planning to use a Pico or Tiny device as a portable
    application, it may be useful to take a look at the Ansmann 1307-0002 Li-
    Ion 18650 Battery. GThe 18650 spec describes a cylindrical cell, 19mm
    diameter by 70mm long. Its a 3.6V 2600mAh with Micro USB charging socket
    in the side at the positive end and can supply up to 5000mA. Currently
    they're selling for around a tenner (P&P + VAT extra.



    --
    Martin | martin at
    Gregorie | gregorie dot org

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)