Welcome to the Pen Plotter GitHub repository! This project combines the power of the DALL-E API with a pen plotter to create unique and artistic drawings. The code contacts the DALL-E API to fetch an image, which is then converted into a G-code file and downloaded. To send the G-code to the pen plotter, CNCjs is used, providing a web-based and lightweight solution. The entire application is built using Node.js and provides a GUI for inserting prompts.
- DALL-E Integration: Connects to the DALL-E API to generate diverse and creative images.
- G-code Conversion: Converts the fetched image into G-code for the pen plotter.
- CNCjs Integration: Uses CNCjs as the G-code sender for controlling the pen plotter.
- Node.js GUI: Provides a GUI for inserting prompts and interacting with the application.
- Clone the repository to your local machine:
git clone https://github.com/your-username/pen-plotter.git
cd pen-plotter
- Install dependencies:
npm install
- Run the application:
npm start
- Access the GUI in your web browser at http://localhost:3000.
- Insert a prompt into the GUI to generate an image from the DALL-E API.
- Choose the desired image from the options provided.
- Convert the selected image into G-code.
- Download the G-code file.
- Open CNCjs and load the downloaded G-code file.
- Control and observe the pen plotter as it creates the artwork.
More Image Options: Provide additional image options and allow users to choose the best one.
GUI Improvement: Enhance the GUI for a better user experience.
Feel free to contribute, and happy plotting! 🖋️🎨
This project was developed as an exctracurricular project, special thanks to Eng. Costanza Cenerini.