It all began on a evening, when I heard of a new microcontroller in the market which was- Particle Photon 2. So, I quickly bought one for me before it gets Out Of Stock.
The Photon 2 is a sleek microcontroller with very much power and potential. It have both 2.4 GHz and 5 GHz Wi-Fi, BLE 5, 3 MB of RAM, 2 MB flash file system, a built-in battery charger, supports OTA and much more. Your can check out the full datasheet here. Also, as this was my first time working with a Particle device, I was both excited and curious to see what it could do. So, let’s dig deep into it!
📦 What You’ll Need Before You BeginTo set up the Photon 2, make sure you’ve got:
- ✅ A Particle Photon 2 development board
- ✅ A Micro-USBcable for power and flashing
- ✅ A PC and a Wi-Fi access
- ✅ A Particle account (which you can create one here)
- ✅ Optionally: VS Code with Particle Workbench for local development
Once you've got these checked off, you’re ready to light this thing up.
Setting Up the Development EnvironmentTo begin your Photon 2 adventure, head over to setup.particle.io. The web setup tool makes it incredibly easy to get your board online and talking to the Particle Cloud.
- After going to setup.particle.io, click on Get Started and connect your Photon 2 with the USB cable.
- Now, you will be viewing a page with a dropdown menu, select Device with USB port from the menu.
- Now, After clicking on Start setting up my device, you will see Detect your Particle device, Click on Select device.
- After clicking on Select device, a pop-up for selecting device will come, select your device from it and then click Connect.
- Now you will see the screen with Update your Particle device, click Continue from the right corner.
- It will then show, Device getting in to DFU mode, then a pop-up will come for selecting your device again, Select the device Photon 2 DFU Mode from the menu and click Connect (as now it is in DFU mode it will be blinking Yellow Light)
- After selecting your device (Photon 2 DFU Mode), click on Update device, Now it will take a few minutes to update your device.
- After Updating your device, a screen with Organize your Particle device will come, select the option Photon 2/P2s and then click Add to Product as shown in the image.
- Now, Give a name to your device like- photonzero2 and click on the option Name Device
- It will then show to connect your Photon 2 with a Wi-Fi Network, Select your network from it and enter the password and click Configure WiFi
- Now Your device is all set! 🎉
- You can now program it with the help of Web IDE or Workbench.
- For programming with Web IDE, you can select the Web IDE option in the setup only, or else you can directly visit to its link https://build.particle.io/build/new
- Enter any name Current App, like led-blinking
- After entering a name, click CTRL+S to save it.
- After creating a project, just paste this basic on-board RGB led blinking code to blink its RGB led.
// Basic code for LED Blinking -IoT HUB
void setup() {
// Enable manual control of the onboard RGB LED
RGB.control(true);
}
void loop() {
// Turn LED to red
RGB.color(255, 0, 0);
delay(500);
// Turn LED to green
RGB.color(0, 255, 0);
delay(500);
// Turn LED to blue
RGB.color(0, 0, 255);
delay(500);
// Turn LED off
RGB.color(0, 0, 0);
delay(500);
}
- Click on the Flash button after pasting the code
- Now, Your device must be blinking its RGB lights.
And just like that, you’ve taken your first step into the world of Particle Photon 2 and cloud-connected hardware. Whether it’s for learning, prototyping, or building your next big IoT invention — this tiny board packs a punch.Now go ahead, experiment, and bring your ideas to life.
You can also take any help on any project related to Photon 2, Just ask is on my mail- garageiot98@gmail.com
Comments