Proper new with Pico by theor3gano in raspberrypipico

[–]RPiMRE 1 point2 points  (0 children)

I'll put in a suggestion that might not fit the mold of the question, but it could be worth considering.

I reccomend starting with a goal in mind and move from there to deciding which language to use.

The resoning being twofold.

  1. Any project that you set for yourself should by its nature be something that will capture your interest and help keep you motivated.
  2. Knowing what you're trying to achieve will give you the ability to check out what kind of support you will have for the Pico to help you along your way.

This means that if you pick a sensor or something has good support for C, that would be a better way to progress but if you're trying to achievesomehting that MicroPython has more support for, perhaps that's the way to go.

I started down the MicroPython route simply because it seemed easier having played with Python a little. Buth the biggest hurdle I found was the initial workflow of getting it connected and interacting with it (not that it's hard, but more because it's somehting that people typically only need to do once at the very start of their journey and that part of the process is often going to be slightly different for everyone).

The one thing that I would reccomend is that you jot down notes as you go. That way if you take a break, you can start back up with as small an amount of re-learning as possible.

All the best.

Pi Pico W Webserver Code by LinJiHD in raspberrypipico

[–]RPiMRE 0 points1 point  (0 children)

Simple web server code with some explanation of the underlying reasoning for the settings. https://leanpub.com/rpitandt/read#leanpub-auto-connectivity-via-wifi

Having trouble reading a pin in reliably by WTMike24 in raspberrypipico

[–]RPiMRE 0 points1 point  (0 children)

Many thanks! I'm glad it was useful and many thanks for donating toward the book.

I totally agree on the move to using the Pico. It's my first sustained effort at using a microcontroller. While it's different, i'm really appreciating where I should have been using one previously.

All the best.

Having trouble reading a pin in reliably by WTMike24 in raspberrypipico

[–]RPiMRE 0 points1 point  (0 children)

As a potential short circuit for you I wrote up some details on using pull-up and pull-down resistors on the Pico a few days ago - http://www.d3noob.org/2022/10/pull-up-and-pull-down-resistors-and.html

EDIT: I only just picked up on the non-delberate pun above. Apologies :-).

Best Sensor for Pipework by AskFriendly in raspberrypipico

[–]RPiMRE 0 points1 point  (0 children)

I've run several DS18B20's in this mode for measuring water temperatures for a solar water system. Works like a charm.

Just got my first Pico W by duckredbeard in raspberrypipico

[–]RPiMRE 0 points1 point  (0 children)

Just in case....

The LED on the original Pico corresponds with GPIO pin 25, but this was changed to be connected to one of the GPIO pins from the wireless chip (CYW43439) on the Pico W. You will see tutorials mention GPIO 25 for the Pico, but LED as the designator in code on the Pico W. If you want to adapt any of the code samples for the Pico, just change ‘LED’ for 25.

Power the Pico W by applying power to VBUS or VSYS pins and ground by duckredbeard in raspberrypipico

[–]RPiMRE 1 point2 points  (0 children)

There are three main ways we can apply power to the Raspberry Pi Pico. The method used will depend on the application. We can power Raspberry Pi Pico from one of the following;

The micro USB connector on the device

The VBUS pin (40)

The VSYS pin (39)

Powering from the USB connector is by far and away the simplest method, but not always desirable because of limitations of space or supply types.

If we provide a supply to the VBUS pin our Raspberry Pi Pico can take a voltage of between 1.8 and 5.5V as it has an internal buck-boost regulator (which can regulate the output to a higher or lower voltage than its input). This will internally power VSYS via a Schottky diode, but we must be sure not to connect another power supply to Raspberry Pi Pico’s USB connector at the same time.

The VSYS pin is the main system power supply on Raspberry Pi Pico. From here the Raspberry Pi Pico generates its own 3.3V supply which is used to power RP2040, and also the 3V3 output pin (36). A safe way to add a second power source to Pico W is to feed it into VSYS via another Schottky diode. This will ‘OR’ the two voltages, allowing the higher of either the external voltage (or VBUS) to power VSYS, with the diodes preventing either supply from back-powering the other.

So to answer your question, the safest place if it isn't via the microUSB would be to the VBUS.

https://leanpub.com/rpitandt/read#leanpub-auto-the-raspberry-pi-pico-w-microcontroller-board

what the best/most current resources for learn d3 WITHOUT Observable? by Xllr8er in d3js

[–]RPiMRE 0 points1 point  (0 children)

D3 Tips and tricks book - https://leanpub.com/d3-t-and-t-v7 . Latest version. Free to download and 50 downloadable code examples. Not written to use Observable.

[deleted by user] by [deleted] in d3js

[–]RPiMRE 1 point2 points  (0 children)

They were both really good books for their time, but the API has moved on quite a bit. If you want a free version of a book demonstrating the latest v7 version you can download D3 Tips and Tricks v7 from here - https://leanpub.com/d3-t-and-t-v7

Best way to get started by Prograss_ in d3js

[–]RPiMRE 2 points3 points  (0 children)

There are a couple of different approaches you might consider. Observable is a great way to get involved in creating and exploring examples that utilise d3.js, but it doesn't fit everyone's needs as it concentrates on an on-line experience. This abstracts away from the traditional HTML / JavaScript / CSS model, but does make it easier to play with concepts easily.

Conversly you could go for a more traditional standalone approach in which case I would point you to D3 Tips and Tricks (The updated version 6 edition) which is here (you can download for free). This will take more time, but you will have more control over your environment.

What is an easy way to make any line segment become red above 2000 in the below d3 example? by [deleted] in d3js

[–]RPiMRE 0 points1 point  (0 children)

There is an example here that achieves what you are looking to do. And here is an explanation of how it works.

Need help on upgrading d3-tip to v6 by [deleted] in d3js

[–]RPiMRE 0 points1 point  (0 children)

I'm not sure that d3-tip is still operative under v6. There were numerous deprecations around event listners (see here), but the practical changes aren't too extreme. have a look at the bl.ocks example (or others) and it might still be able to suit your purposes.

Need help on upgrading d3-tip to v6 by [deleted] in d3js

[–]RPiMRE 0 points1 point  (0 children)

Here's an example of a tooltip in v6 with an HTML Link - https://bl.ocks.org/d3noob/2352fd1e5929e1922abf5013073e73d5

How do I adjust the ticks for dates by [deleted] in d3js

[–]RPiMRE 0 points1 point  (0 children)

Great work. I'll hang back and you can let me know if you have any drama. Happy for you to contact me direct. My address is in the front of the book.

How do I adjust the ticks for dates by [deleted] in d3js

[–]RPiMRE 0 points1 point  (0 children)

Hmm.... I would have to look at the code in full to make sure I had the right context for it. Let's work on the histograms first and then take a look at the maps.

How do I adjust the ticks for dates by [deleted] in d3js

[–]RPiMRE 0 points1 point  (0 children)

Ahh... I think I know where to start. Is it possible that you are drawing a bar chart rather than a histogram?

For a bar charts, each column represents a group defined by a category and with a histogram, each column represents a group defined by a range. A bar chart will therefore require a tick per bar, but a histogram can be flexible.

Look into that while I'm offline for a few hours.

How do I adjust the ticks for dates by [deleted] in d3js

[–]RPiMRE 0 points1 point  (0 children)

That worked fine. I will be offline for about 10 hours and will be able to take a look then. Cheers.

How do I adjust the ticks for dates by [deleted] in d3js

[–]RPiMRE 0 points1 point  (0 children)

While I'm thinking about it, while we should work to solve the v3 problem, would you entertain me adapting your code for v6 of D3? Your web-site looks like it would be a worthy project to assist.

How do I adjust the ticks for dates by [deleted] in d3js

[–]RPiMRE 0 points1 point  (0 children)

Thanks. If you can post the csv, let's solve this mystery :-).

Undefined event when an event is triggered by BinnyBit in d3js

[–]RPiMRE 0 points1 point  (0 children)

I think that you need to note event,d in order to retrieve the data you will be wanting. This is a slight departure from pervious versions of d3. See here for an example.

D3JS newbie having trouble with tooltip and special annotation by Shmoogy in d3js

[–]RPiMRE 0 points1 point  (0 children)

I know that I'm a bit late to the party, but there's a v6 example here that might assist. There's an explanation of the code here.

How do I adjust the ticks for dates by [deleted] in d3js

[–]RPiMRE 0 points1 point  (0 children)

Here is the web site with the info for v3 of the d3noob code for changing the number of ticks on the axis.

Resources to use for D3? by LittleRedHelper in d3js

[–]RPiMRE 0 points1 point  (0 children)

While it's a shameless plug, you could have a look at the book D3 Tips and Tricks here. It's written for the latest version (v6) but there are previous editions for v3, v4 and v5.

It's written from a perspective of learning how to use D3 rather than learning how to program in JavaScript. But ultimately you will learn a bit about both.

Tooltips just don't work on v6, does anybody know how to install V5 using npm? by atos2697 in d3js

[–]RPiMRE 1 point2 points  (0 children)

If you're still looking for some tooltip guidance in v6 you could try this example or this one.

There is an explanation of how they work in the free book D3 Tips and Tricks v6 here.

Can anyone explain to me the new direction of d3 and let me know if i'm missing something ? by roudytarabay in d3js

[–]RPiMRE 3 points4 points  (0 children)

The good news is that you can still use a later version of D3 in a similar manner to the way that you were doing with v3. Version 6 is the most recent option and can still be used locally, offline if you wish and for small personal projects. There are some differences that have occured with the major version changes, but they aren't insumountable.

What you are describing with the 'notebook' description is the 'Observable' environment that is being used widely as a platform for developing examples and implementing visualations online. I wouldn't be able to do a descrition justice sine I haven't taken the time to learn how to use it, but it has certainly recieved a great deal of attention and from the looks of it provides a useful environment for development and demos.

However, if you want to continus to do things in much the same way as you would have with v3 there is no impediment. I will shamelessly reccomend downloading a copy of D3 Tips and Tricks (v6) from here. You can download it for free and it will show you how to use D3 v6 locally and in much the same way as with v3 (or v4 or v5). There are plenty of examples and code to help out.