Is the old Particle WEB IDE good for Photon 2?

This section in the datasheet covers the VUSB pin:

The pin is internally connected to the VBUS of the USB port. The nominal output should be around 4.5 to 5 VDC when the device is plugged into the USB port and 0 when not connected to a USB source. You can use this pin to power peripherals that operate at such voltages. Do not exceed the current rating of the USB port, which is nominally rated to 500mA. This pin is also protected with an internal fuse rated at 1000mA.

It is also possible to use the VUSB to power the Photon 2 at 5V if not using the USB port. There is no blocking diode between the USB port and VUSB, so you should not use both at the same time.

An external supply powering the Photon 2 via VUSB must be 500 mA at 5V minimum, however using a 5V 1A (5W) power supply is recommended.

1 Like

What sorts of bad things would happen when they're powered at the same time? I can see this happening during manufacturing unless we were very very explicit in our instructions.

It depends on the robustness of your power supply and the USB host.

Your computer is not expecting the USB power lines to be powered; the host (computer or hub) is normally responsible for that. Ideally it will not be damaged, but there's no guarantee.

On the other side, many regulators will not be damaged if there is power supplied to their power output, but could be.

1 Like

Gentlemen thank for your clarifications

Hi I have another question if I may.

int PWM1 = A2; // pwm out for chanel 1 pin 7
int PWM2 = A5; // pwm out for chanel 2 pin 8
int PWM3 = MOSI; // pwm out for chanel 3 pin 12
int PWM4 = MISO; // pwm out for chanel 4 pin 13
int Button = D5; // interrupt button Pin 22
int PWMHF = D1; // pin 18 For High frequency
int FULBR1 = D6; // pin 23
int FULBR2 = D7; // pin 24
int FULBR3 = RX; // pin 14
int FULBR4 = TX; // pin 15

Void setup ();
analogWrite(PWMHF, 127, 2000); // Hi frequency generator

viod loop () {
// manual mode
analogWrite(PWM1, Gbrite1, 60);
analogWrite(PWM2, Gbrite2, 60);
analogWrite(PWM3, Gbrite3, 60);
analogWrite(PWM4, Gbrite4, 60);
};
PWMHF High frequency appears on all the 60 HZ PWMs
This is a big problem
I hope I have made myself clear

All PWM pins on the P2/Photon 2 share the same timer so they all share the same frequency. They can have different periods, but all must have the same frequency.

1 Like

Thanks Sir. I have to use an external frequency source for my design

Sir I have another question if I may
How can I use Node-Red with Photon2? through WiFi

Thanks Sir. Node RED Reference does not contain any example of color wheel for color selection. Is there a Particle App for color wheel in NODE Red.
Sorry I am not familiar with NODE RED. If there is no such app available there would be no point in using NODE RED. I would appreciate. your advice and help

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.